Opened 18 years ago
Closed 18 years ago
#2989 closed defect (fixed)
installing django via easy_install is broken in r4050
Reported by: | __doc__ | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | Core (Other) | Version: | |
Severity: | major | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The django setup.py is broken n r4050 for easy_install. Trying to easy_install the package fails:
myhost:~/packages/django_trunk# easy_install . Processing . Running setup.py -q bdist_egg --dist-dir /root/packages/django_trunk/egg-dist-tmp-IaTqh9 error: Setup script exited with error: package directory 'root/packages/django_trunk/django' does not exist
I think it is because easy install changes the working directory or something, and the django setup.py isn't written to run non local.
Attachments (1)
Change History (9)
by , 18 years ago
Attachment: | setup.py.diff added |
---|
comment:1 by , 18 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Support for easy_install was deliberately removed in r3906.
comment:2 by , 18 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
You confuse two things. Reliance in setup.py on setuptools was removed with r3906. However, easy_install is designed to work with vanilla distutils as well, which is what this ticket is about.
comment:3 by , 18 years ago
Besides, I want to comment on r3906.
This means installing Django no longer requires a easy_install, setuptools or a working Internet connection, greatly simplifying things.
- easy_install is part of setuptools. It is however not required for installation, you may as well go with "python setup.py install"
- setuptools is just a standalone library, I don't see how it "greatly simplifying things" not to rely on it.
- A working internet connection is not required with setuptools
comment:4 by , 18 years ago
Resolution: | → invalid |
---|---|
Status: | reopened → closed |
This isn't the place to pick bones about Django's lack of support for setuptools, nor is it the place to argue about what setuptools does or doesn't do. Please take this discussion to django-dev if you want to continue it.
comment:5 by , 18 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
It's not about support of setuptools!!! It's a matter of writing a proper distutils package. Now, that's not that hard to understand, would you take your time to read what I write instead of stopping at the word "easy_install" you'd understand (heck why not just look at the patch I added, you know, it's python, I'm sure you can read that, if you can't understand what I write).
Gesh you guys are square headed, that's the last time like *ever* I'm going to point out your problems for you, have fun figuring out your mess in the future alone!!!!
comment:7 by , 18 years ago
I do agree that the patch is worth putting in; I suspect the ticket was closed purely based on a misunderstanding that it was easy_install-specific. Sorry about that!
Armin: Check the django-developers archives for discussion of removing setuptools support. We did it several weeks (months?) ago.
propsed setup.py fix