Pip Freeze Captures The Package Name As If It Was On Python Index Site, But It Is Not. Full Path Is Needed
I installed a package from git hub: pip install -e git+http://github.com/un33k/django-uuslug.git#egg=django-uuslug Then I did: pip freeze > req.txt I get: django-uuslug==0.1
Solution 1:
I had the same issue. I believe it's a problem whenever the packages are in a subdirectory(e.g. src). Here's the patch that fixed it for me.
--- a/setup.py+++ b/setup.py@@ -11,13 +11,9 @@ setup(
license = 'BSD',
description = "MAC address model and form fields for Django apps.",
long_description = read('README.rst'),
-
author = 'Ryan Nowakowski',
author_email = 'me@example.com',
-- packages = find_packages('src'),- package_dir = {'': 'src'},- + packages = ['macaddress'],
install_requires = ['setuptools'],
requires = ['netaddr'],
#tests_requires = ['django'],
Solution 2:
I fixed it, don't know how, but I had to change the setup.py
pip install -e git+http://github.com/un33k/django-uuslug.git#egg=django-uuslug
If you find similar issue, and find yourself on this question, just look at the setup.py in the above package. Perhaps you can tell me how I fixed it. I just moved things around a bit.
Post a Comment for "Pip Freeze Captures The Package Name As If It Was On Python Index Site, But It Is Not. Full Path Is Needed"