Django

Code

Ticket #3245 (closed: fixed)

Opened 2 years ago

Last modified 11 months ago

setup.py error on windows when installing from a second level directory

Reported by: dall Assigned to: nobody
Milestone: Component: Uncategorized
Version: Keywords: windows installation
Cc: Triage Stage: Accepted
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

D:\django_src>setup.py install
running install
running build
running build_py
error: package directory '\django' does not exist

Attachments

Change History

01/07/07 19:49:19 changed by ramiro <rm0 _at_ gmx.net>

dall,

What version of Django are you trying to install?. What are the contents of the D:\django_src directory?

01/18/07 16:55:40 changed by jacob

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

We'll need a lot more information -- Windows version, Python version, etc. -- to even start to fix this. You zhould probably also try django-users before reporting this as a bug.

01/30/07 00:21:11 changed by wfifi

  • component changed from django-admin.py to Uncategorized.

windows install must change setyp.py line 24

package = dirpath[len_root_dir:].lstrip('/').replace('/', '.')

to

package = dirpath[len_root_dir:].lstrip('\\').replace('\\', '.')

01/30/07 00:53:55 changed by Michael Radziej <mir@noris.de>

  • keywords set to windows installation.
  • summary changed from setup.py error on windows to setup.py error on windows when installing from a second level directory.
  • stage changed from Unreviewed to Accepted.

OK, this makes sense. It seems to happen only when you install it in a second level directory. I cannot check this, but for Windows you'll probably need the same path treatment as for unix. Of course, the replacements from the preceding comment must do the replacements both for unix ('/') and for windows ('\\').

04/21/07 07:52:12 changed by Simon G. <dev@simon.net.nz>

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

#4082 looks like a duplicate.

04/21/07 07:55:11 changed by mtredinnick

I have a feeling this might have been fixed in [4912]. Could you check if the problem still exists with a recent subversion checkout?

(follow-up: ↓ 8 ) 04/23/07 07:22:11 changed by Simon G. <dev@simon.net.nz>

#4182 appears to be a duplicate.

(in reply to: ↑ 7 ) 04/23/07 10:39:05 changed by Gary Wilson <gary.wilson@gmail.com>

Replying to Simon G. <dev@simon.net.nz>:

#4182 appears to be a duplicate.

I believe you mean #4128.

08/05/07 23:46:45 changed by anonymous

I had this same problem when trying to install Django from a folder on my Desktop (Windows XP). Changing the slashes on line 24 fixed it.

10/21/07 13:42:18 changed by mtredinnick

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

All the evidence here points to people using versions prior to [4912] -- such as Django 0.96.

01/10/08 16:36:32 changed by Jason <romain_hardouin@yahoo.fr>

Replying to wfifi:

This hack makes setup.py works fine on my winXP/Py2.5/Django-0.96.1
Thanx guy


Add/Change #3245 (setup.py error on windows when installing from a second level directory)




Change Properties
Action