Opened 8 years ago

Closed 8 years ago

#2989 closed defect (fixed)

installing django via easy_install is broken in r4050

Reported by: __doc__ Owned by: adrian
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: UI/UX:

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__ 8 years ago.
propsed setup.py fix

Download all attachments as: .zip

Change History (9)

Changed 8 years ago by __doc__

propsed setup.py fix

comment:1 Changed 8 years ago by russellm

  • Resolution set to invalid
  • Status changed from new to closed

Support for easy_install was deliberately removed in r3906.

comment:2 Changed 8 years ago by __doc__

  • Resolution invalid deleted
  • Status changed from closed to 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 Changed 8 years ago by __doc__

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 Changed 8 years ago by jacob

  • Resolution set to invalid
  • Status changed from reopened to 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 Changed 8 years ago by __doc__

  • Resolution invalid deleted
  • Status changed from closed to 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:6 Changed 8 years ago by Armin Ronacher

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

comment:7 Changed 8 years ago by adrian

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 Changed 8 years ago by adrian

  • Resolution set to fixed
  • Status changed from reopened to closed

Fixed in [4114].

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