Changes between Initial Version and Version 1 of Ticket #4128


Ignore:
Timestamp:
Apr 23, 2007, 6:02:15 AM (17 years ago)
Author:
Malcolm Tredinnick
Comment:

(Fixed up wiki-formatting in summary.)

Can you print out what the value of __file__ is when you run setup.py? Just put in a print statement before the line that sets root_dir. I'm trying to work out if __file__ is not set correctly or if os.path.dirname() is returning the wrong thing.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4128

    • Property Component Admin interfaceTools
    • Property Triage Stage UnreviewedAccepted
  • Ticket #4128 – Description

    initial v1  
    99I hacked around a bit and found the problem in the setup.py file. The original relevant portion is:
    1010
     11{{{
     12#!python
    1113# Compile the list of packages available, because distutils doesn't have
    1214# an easy way to do this.
     
    1517len_root_dir = len(root_dir)
    1618django_dir = os.path.join(root_dir, 'django')
    17 
     19}}}
    1820
    1921I reckoned that the "root directory" was not being recognised properly... so I made the following change:
    2022
     23{{{
     24#!python
    2125# Compile the list of packages available, because distutils doesn't have
    2226# an easy way to do this.
     
    2529len_root_dir = len(root_dir)
    2630django_dir = os.path.join(root_dir, 'django')
     31}}}
    2732
    2833The above worked like magic without any hassles. So what's up guys, is this a bug or what? BTW, I had the latest installer tool :
Back to Top