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)

setup.py.diff (921 bytes ) - added by __doc__ 18 years ago.
propsed setup.py fix

Download all attachments as: .zip

Change History (9)

by __doc__, 18 years ago

Attachment: setup.py.diff added

propsed setup.py fix

comment:1 by Russell Keith-Magee, 18 years ago

Resolution: invalid
Status: newclosed

Support for easy_install was deliberately removed in r3906.

comment:2 by __doc__, 18 years ago

Resolution: invalid
Status: closedreopened

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 __doc__, 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.
  1. easy_install is part of setuptools. It is however not required for installation, you may as well go with "python setup.py install"
  2. setuptools is just a standalone library, I don't see how it "greatly simplifying things" not to rely on it.
  3. A working internet connection is not required with setuptools

comment:4 by Jacob, 18 years ago

Resolution: invalid
Status: reopenedclosed

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 __doc__, 18 years ago

Resolution: invalid
Status: closedreopened

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:6 by Armin Ronacher, 18 years ago

...
No comment. Why the hell was setuptools support removed?

comment:7 by Adrian Holovaty, 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.

comment:8 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: reopenedclosed

Fixed in [4114].

Note: See TracTickets for help on using tickets.
Back to Top