﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
6672	Correct setup.py under Windows (not bug, not request, but commit)	temoto	nobody	"I'm sorry for incorrect place to report such thing.

Documentation says under Windows one should just copy django directory tree to site-packages and it will work.

If i try to run setup.py install, i get directory ""\django"" access error. That can be corrected if i increment root_len by one. Script uses correct ""django"" with no leading backslash path then and it installs perfectly.

So all we have to change is these lines in setup.py:

{{{
root_dir = os.path.dirname(__file__)
len_root_dir = len(root_dir)
django_dir = os.path.join(root_dir, 'django')
}}}

to:

{{{
root_dir = os.path.dirname(__file__)
len_root_dir = len(root_dir)
if os.name == ""nt"": len_root_dir++
django_dir = os.path.join(root_dir, 'django')
}}}

I'm sorry not to attach a diff. I'm sure you want to change style or something.
"		closed	Uncategorized	0.96		fixed	setup.py		Unreviewed	1	0	0	0	0	0
