#3245 closed defect (fixed)
setup.py error on windows when installing from a second level directory
Reported by: | dall | Owned by: | nobody |
---|---|---|---|
Component: | Uncategorized | Version: | |
Severity: | normal | Keywords: | windows installation |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
D:\django_src>setup.py install running install running build running build_py error: package directory '\django' does not exist
Change History (11)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
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.
comment:3 by , 18 years ago
Component: | django-admin.py → Uncategorized |
---|
windows install must change setyp.py line 24
package = dirpath[len_root_dir:].lstrip('/').replace('/', '.')
to
package = dirpath[len_root_dir:].lstrip('
').replace('
', '.')
comment:4 by , 18 years ago
Keywords: | windows installation added |
---|---|
Summary: | setup.py error on windows → setup.py error on windows when installing from a second level directory |
Triage Stage: | Unreviewed → 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 ('
').
comment:5 by , 18 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
#4082 looks like a duplicate.
comment:6 by , 18 years ago
I have a feeling this might have been fixed in [4912]. Could you check if the problem still exists with a recent subversion checkout?
comment:8 by , 18 years ago
comment:9 by , 17 years ago
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.
comment:10 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
All the evidence here points to people using versions prior to [4912] -- such as Django 0.96.
comment:11 by , 17 years ago
Replying to wfifi:
This hack makes setup.py works fine on my winXP/Py2.5/Django-0.96.1
Thanx guy
dall,
What version of Django are you trying to install?. What are the contents of the D:\django_src directory?