Django

Code

Ticket #2989 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

installing django via easy_install is broken in r4050

Reported by: __doc__ Assigned to: adrian
Milestone: Component: Core framework
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

setup.py.diff (0.9 kB) - added by __doc__ on 11/07/06 02:49:12.
propsed setup.py fix

Change History

11/07/06 02:49:12 changed by __doc__

  • attachment setup.py.diff added.

propsed setup.py fix

11/07/06 04:20:19 changed by russellm

  • status changed from new to closed.
  • resolution set to invalid.

Support for easy_install was deliberately removed in r3906.

11/07/06 06:30:19 changed by __doc__

  • status changed from closed to reopened.
  • resolution deleted.

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.

11/07/06 07:12:54 changed 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

11/07/06 09:31:06 changed by jacob

  • status changed from reopened to closed.
  • resolution set to invalid.

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.

11/07/06 12:39:16 changed by __doc__

  • status changed from closed to reopened.
  • resolution deleted.

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!!!!

11/07/06 12:45:09 changed by Armin Ronacher

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

11/07/06 12:51:05 changed 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.

11/26/06 19:13:11 changed by adrian

  • status changed from reopened to closed.
  • resolution set to fixed.

Fixed in [4114].


Add/Change #2989 (installing django via easy_install is broken in r4050)




Change Properties
Action