Skip to content

Commit

Permalink
updates Linux deps on README
Browse files Browse the repository at this point in the history
  • Loading branch information
moisesguimaraes committed May 15, 2016
1 parent 9659505 commit d76d74d
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ apt-get update
apt-get install -y git autoconf libtool make valgrind libpq-dev
URL=https://sourceforge.net/projects/levent/files/libevent
LIB=libevent-2.0
VER=22-stable
URL=https://github.com/libevent/libevent/releases/download/release
LIB=libevent
VER=2.0.22-stable
wget -q $URL/$LIB/$LIB.$VER.tar.gz && tar -zxf $LIB.$VER.tar.gz
cd $LIB.$VER/ && ./autogen.sh && ./configure -q && make -s
sudo make install && cd .. && rm -rf $LIB.$VER*
wget -q $URL-$VER/$LIB-$VER.tar.gz && tar -zxf $LIB-$VER.tar.gz
cd $LIB-$VER/ && ./autogen.sh && ./configure -q && make -s
sudo make install && cd .. && rm -rf $LIB-$VER*
DST=wolfssl
Expand Down
32 changes: 32 additions & 0 deletions wrapper/include.am
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,35 @@ EXTRA_DIST+= wrapper/CSharp/wolfSSL_CSharp/Properties/Resources.Designer.cs
EXTRA_DIST+= wrapper/CSharp/wolfSSL_CSharp/Properties/Resources.resx
EXTRA_DIST+= wrapper/CSharp/wolfSSL_CSharp/wolfSSL.cs
EXTRA_DIST+= wrapper/CSharp/wolfSSL_CSharp/wolfSSL_CSharp.csproj

# wolfcrypt python wrapper files
EXTRA_DIST+= wrapper/python/docs
EXTRA_DIST+= wrapper/python/docs/_static
EXTRA_DIST+= wrapper/python/docs/_templates
EXTRA_DIST+= wrapper/python/docs/asymmetric.rst
EXTRA_DIST+= wrapper/python/docs/conf.py
EXTRA_DIST+= wrapper/python/docs/digest.rst
EXTRA_DIST+= wrapper/python/docs/index.rst
EXTRA_DIST+= wrapper/python/docs/mac.rst
EXTRA_DIST+= wrapper/python/docs/Makefile
EXTRA_DIST+= wrapper/python/docs/random.rst
EXTRA_DIST+= wrapper/python/docs/symmetric.rst
EXTRA_DIST+= wrapper/python/LICENSING.rst
EXTRA_DIST+= wrapper/python/MANIFEST.in
EXTRA_DIST+= wrapper/python/README.rst
EXTRA_DIST+= wrapper/python/requirements-testing.txt
EXTRA_DIST+= wrapper/python/setup.py
EXTRA_DIST+= wrapper/python/test
EXTRA_DIST+= wrapper/python/test/test_ciphers.py
EXTRA_DIST+= wrapper/python/test/test_hashes.py
EXTRA_DIST+= wrapper/python/test/test_random.py
EXTRA_DIST+= wrapper/python/tox.ini
EXTRA_DIST+= wrapper/python/wolfcrypt
EXTRA_DIST+= wrapper/python/wolfcrypt/__about__.py
EXTRA_DIST+= wrapper/python/wolfcrypt/__init__.py
EXTRA_DIST+= wrapper/python/wolfcrypt/build_ffi.py
EXTRA_DIST+= wrapper/python/wolfcrypt/ciphers.py
EXTRA_DIST+= wrapper/python/wolfcrypt/exceptions.py
EXTRA_DIST+= wrapper/python/wolfcrypt/hashes.py
EXTRA_DIST+= wrapper/python/wolfcrypt/random.py
EXTRA_DIST+= wrapper/python/wolfcrypt/utils.py
18 changes: 18 additions & 0 deletions wrapper/python/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ You can install ``wolfcrypt`` via ``pip`` or ``source code``, but before
installing it, make sure you have ``wolfssl`` C library installed in your
machine.

**Linux ONLY:** Make sure you have ``python-dev``, ``python3-dev``,
``python-pip`` and ``libffi-dev`` installed:

.. code-block:: console
$ sudo apt-get update
$ sudo apt-get install python-dev python3-dev python-pip libffi-dev
To install wolfssl do:

.. code-block:: console
Expand All @@ -30,6 +39,12 @@ To install wolfssl do:
$ make
$ sudo make install
**Linux ONLY:** Update your dynamic linker bindings with:

.. code-block:: console
$ sudo ldconfig
wolfcrypt pip installation
~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -94,5 +109,8 @@ Test ``wolfcrypt`` locally with ``tox``:
...
_________________________________ summary _________________________________
py27: commands succeeded
SKIPPED: py34: InterpreterNotFound: python3.4
py35: commands succeeded
congratulations :)
Note that some tests might be skipped if you don't have the proper interpreter.
3 changes: 2 additions & 1 deletion wrapper/python/tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[tox]
envlist=py27,py35
envlist=py27,py34,py35
skip_missing_interpreters=true

[testenv]
deps=-rrequirements-testing.txt
Expand Down

0 comments on commit d76d74d

Please sign in to comment.