I am trying to have Heroku take an editable dependency (i.e. -e git://github.com/merlinares/django-registration.git#egg=django-registration
) with pip requirements.
However, even though it appears to be taking that fork on deploy, it is not actually using it. I have checked the code in site-packages with heroku run cat .heroku/python/lib/python2.7/site-packages/registration/forms.py
and it doesn't include the new code, but just uses the default django-registration package which was previously installed.
However, the forked version seems to exist in the directory specified by django-registration.egg-link
, a directory named:
/app/.heroku/src/django-registration
On deploy (i.e. git push heroku master
) I see:
-----> Installing dependencies using Pip (1.3.1)
Obtaining django-registration from git+git://github.com/mattlinares/django-registration.git#egg=django-registration (from -r requirements.txt (line 12))
Updating ./.heroku/src/django-registration clone
Running setup.py egg_info for package django-registration
Installing collected packages: django-registration
Running setup.py develop for django-registration
Creating /app/.heroku/python/lib/python2.7/site-packages/django-registration.egg-link (link to .)
django-registration 0.8-alpha-1 is already the active version in easy-install.pth
Installed /app/.heroku/src/django-registration
Successfully installed django-insensitive django-registration
Cleaning up...
I've also manually tried to uninstall and install that particular fork, with this effect:
(ssc)~/code/django/ssc: heroku run pip install --upgrade git+git://github.com/mattlinares/django-registration.git
Running `pip install --upgrade git+git://github.com/mattlinares/django-registration.git` attached to terminal... up, run.5704
Downloading/unpacking git+git://github.com/mattlinares/django-registration.git
Cloning git://github.com/mattlinares/django-registration.git to /tmp/pip-qpTF2t-build
Running setup.py egg_info for package from git+git://github.com/mattlinares/django-registration.git
Installing collected packages: django-registration
Found existing installation: django-registration 0.8-alpha-1
Uninstalling django-registration:
Successfully uninstalled django-registration
Running setup.py install for django-registration
Successfully installed django-registration
Cleaning up...
Yet my app is not using the version of registration
I am trying to feed it. I'm suspecting the eggs which are listed with heroku run ls .heroku/python/lib/python2.7/site-packages
:
django_registration-0.8-py2.7.egg-info registration
django-registration.egg-link
I've also tried to purge the whole virtualenv as per how to pip uninstall with virtualenv on heroku cedar stack? with no luck
What can I do?