MacPorts compatibility issue
amamaenko opened this issue · 0 comments
Checklist
Here is the list of steps that are different so far as I got, when installing MacOS with MacPorts
Steps
- first install the C++ libraries that we would need later:
sudo port install automake libtool pkgconfig libffi gmp openssl
Note that the MacPorts has pkgconfig
library name rather than pkg-config
in
Brew or linuxes.
-
Next step is to build one of
pyethapp
dependencies - thescrypt
module
using a trick. The reason for this trick is described at:
https://cryptography.io/en/latest/installation/#building-cryptography-on-os-x,
and a solution is described at: #209
Basically, thepyethapp
setup relies on system packages for openssl, so,
instead of modifying its setup scripts, we're going to simply preinstall the
dependency manually:
env LDFLAGS="-L/opt/local/lib" CFLAGS="-I/opt/local/include" pip install scrypt
-
Installing from an egg/wheel doesn't work, so clone the pytheapp module and run the "Development" setup
cd pyethapp
USE_PYETHEREUM_DEVELOP=1 python setup.py develop
-
THE TRICKIEST: Fix the devp2p module.
In thedevp2p/crypto.py
fix the openssl import path. Make sure to include the
MacPorts' library into the lib path. Correct lib path below:
_openssl_lib_paths = ['/usr/local/Cellar/openssl/', '/opt/local/bin/']
System/environment
- MacOS 10.13.2 (High Sierra) freshly installed.
- standard libraries for openssl removed in this version
- MacPorts 2.4.2 already installed (see https://www.macports.org)
- some packages have different names from Brew
- Python 3.6.4 installed from macports as
python3
pytheapp
hacked in python 2.7, so it won't install from pypi on 3.6
Expected behaviour
Instead of step 3, the install should go fine
Observed behaviour
required ciphers {'aes-128-ctr'} not available in openssl library'
Steps to reproduce
After the above installation start:
python[3] -m pyethapp.app