Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><a href="https://stackoverflow.com/questions/3472430/how-can-i-make-setuptools-install-a-package-thats-not-on-pypi/3472494#3472494">This answer</a> helped me solve the same problem you're talking about. </p> <p>There doesn't seem to be an easy way for setup.py to use the requirements file directly to define its dependencies, but the same information can be put into the setup.py itself.</p> <p>I have this requirements.txt:</p> <pre><code>PIL -e git://github.com/gabrielgrant/django-ckeditor.git#egg=django-ckeditor </code></pre> <p>But when installing that requirements.txt's containing package, the requirements are ignored by pip.</p> <p>This setup.py seems to coerce pip into installing the dependencies (including my github version of django-ckeditor):</p> <pre><code>from setuptools import setup setup( name='django-articles', ..., install_requires=[ 'PIL', 'django-ckeditor&gt;=0.9.3', ], dependency_links = [ 'http://github.com/gabrielgrant/django-ckeditor/tarball/master#egg=django-ckeditor-0.9.3', ] ) </code></pre> <p><strong>Edit:</strong></p> <p><a href="https://stackoverflow.com/questions/2087492/can-a-python-package-depend-on-a-specific-version-control-revision-of-another-pyt">This answer</a> also contains some useful information.</p> <p>Specifying the version as part of the "#egg=..." is required to identify which version of the package is available at the link. <strike>Note, however, that if you always want to depend on your latest version, you can set the version to <code>dev</code> in install_requires, dependency_links and the other package's setup.py</strike></p> <p><strong>Edit:</strong> using <code>dev</code> as the version isn't a good idea, as per comments below.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload