Cannot pip wheel because setup.py egg_info requires flag
See original GitHub issueI’m attempting to build wheels for my project’s dependencies. One such dependency is bsddb3. My berkeley DB is installed in a non-standard location, so I need to provide --berkeley-db=/strange/location
to just about any setup.py invocation, including egg_info
. pip wheel
has flags for general options and for bdist_wheel options, but it appears to be running egg_info
without passing the --berkeley-db
flag.
Downloading the source, unpacking it, and running python setup.py bdist_wheel --berkeley-db=/strange/location
generates the wheel just fine.
pip wheel --build-option="--berkeley-db=/strange/location" --no-deps bsddb3
Downloading bsddb3-6.0.1.tar.gz (347kB): Downloading from URL https://pypi.python.org/packages/source/b/bsddb3/bsddb3-6.0.1.tar.gz#md5=2b22ab1b4d896961c30e4106660e9139 (from https://pypi.python.org/simple/bsddb3/) …Downloading bsddb3-6.0.1.tar.gz (347kB): 347kB downloaded Running setup.py (path:/tmp/pip_build_jonr/bsddb3/setup.py) egg_info for package bsddb3 Running command python setup.py egg_info Can’t find a local Berkeley DB installation. (suggestion: try the --berkeley-db=/path/to/bsddb option) Complete output from command python setup.py egg_info: Can’t find a local Berkeley DB installation. (suggestion: try the --berkeley-db=/path/to/bsddb option)
Issue Analytics
- State:
- Created 10 years ago
- Comments:6 (1 by maintainers)
Top GitHub Comments
In case you end up here like me, the environment variable is BERKELEYDB_DIR, so your command will start with something like “BERKELEYDB_DIR=/usr/local/Cellar/berkeley-db/5.3.15/”.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.