Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
pip install from git url doesn't honour setup.cfg #1630
Trying to install psycopg from a git url fails in an apparently mysterious way:
The reason of the failure is apparently that the gcc command line is missing a few declarations that are defined in the
If you suggest an acceptable way to work around this problem fixing the setup.py we'd be happy to implement it in psycopg.
Tested pip version is 1.5.2
Maybe 0.6.24? Not sure as:
Firstly, you may like to check whether a setup.cfg exists in your current directory, as it may override the project's setup.cfg.
This may be a legimate bug in distribute 0.6.24 (virtually unmaintained now), however you might like to try as a workaround upgrading to newer versions of the packaging tools. I'm on windows atm, so can't test compiling, but to upgrade them on your system would want to run
(outside a virtualenv), you could even just update your particular virtualenv's copies of pip & setuptools inside that environment, i.e
If this behaviour is still present using the newest tools then this might be considered a bug in setuptools.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
I've worked around this bug by passing manually the defines found in the setup.cfg to the Extension (reading the cfg files works ok in the setup.py: it's the Extension object that doesn't receive them).
If you want to test please use an older commit, for instance: