Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install is a little finicky on OSX #24

Open
drewcrawford opened this issue Jul 28, 2014 · 0 comments
Open

Install is a little finicky on OSX #24

drewcrawford opened this issue Jul 28, 2014 · 0 comments

Comments

@drewcrawford
Copy link
Contributor

I've noticed that installs are particularly finicky on OSX.

Suppose this configuration:

  1. nanomsg 0.4 installed via homebrew (to /usr/local/lib/libnanomsg.* and /usr/include/nanomsg)
  2. Python 3.4 from python.org

There's not a good way to install nanomsg-python from pip. For example you might naively try

pip3.4 install -e git+https://github.com/tonysimpson/nanomsg-python#egg=nanomsg

But it turns out that neither /usr/local/lib is in lib search path nor is /usr/include in include search path by default. Arguably this is somebody else's bug, but it's inconvenient.

The workaround is to download the repo yourself and specify manually with build_ext:

python3 setup.py build_ext --include-dirs /usr/local/include --library-dirs=/usr/local/lib/
python3 setup.py install

But for requirements.txt or other pip install, this is very unsatisfactory.

Finally, using python3 setup.py develop in lieu of python3 setup.py install is inexplicably broken; it installs without error but it fails to import.

I'm not totally sure what is afoot here, but I've seen this behavior on 2 systems now and so it may be worth investigating

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant