Hi,

As a newbie to Django I failed to read the install doc correctly and
tried to run setup.py rather than simply checking django out of svn
directly into site-packages.  Reading the doc more carefully solved my
problem, but in the meantime I found a "buglet" in setup.py that
should probably be fixed in case someone tries to port it to yet-
another platform:

The problem is setup.py assumes that '/' is used to separate elements
in a path.

A patch to setup.py:
+++ setup.py.bak        2007-02-08 10:25:37.105914100 -0600
@@ -21,7 +21,7 @@
     for i, dirname in enumerate(dirnames):
         if dirname.startswith('.'): del dirnames[i]
     if '__init__.py' in filenames:
-        package =
dirpath[len_root_dir:].lstrip(os.path.sep).replace(os.path.sep, '.')
+        package = dirpath[len_root_dir:].lstrip('/').replace('/',
'.')
         packages.append(package)
     else:
         data_files.append([dirpath, [os.path.join(dirpath, f) for f
in filenames]])

fixed the problem.

Dale


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to