Tuesday, 15 March 2011

python - setup.py specify link to use for install_requires -



python - setup.py specify link to use for install_requires -

i running python3 , trying require install of oauth2. problem std pypi repository doesn't have py3 back upwards oauth2. therefore, need utilize this version

setup( ... install_requires=[ ... oauth2, ... ] dependency_links=['https://github.com/tseaver/python-oauth2/archive/py3.zip'] ... )

the total setup.py file can found here

this doesn't work -- python setup.py install still tries install py2 version of oauth2. looking @ the documentation, dependency_links says "these links used if needed" -- i'm guessing thinks doesn't need them.

i have tried 1 obvious solution, , version number of working version. , oauth2==1.5.211 -- doesn't work either (i guess both 2 , 3 branches have same version? aug)

any help appreciated

python installation pip setuptools setup.py

No comments:

Post a Comment