Changeset 116

Show
Ignore:
Timestamp:
04/20/06 10:11:49 (19 years ago)
Author:
jerome
Message:

Make setup.py work in both environments without warning.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykoticon/trunk/setup.py

    r115 r116  
    3535    else :     
    3636        directory = os.sep.join(["share", "pykoticon"]) 
    37         withPy2EXE = 0 
     37        withPy2EXE = False 
    3838else :         
    3939    directory = "." 
    40     withPy2EXE = 1 
     40    withPy2EXE = True 
    4141 
    4242version = "1.00" 
    4343 
    44 setup(name = "pykoticon", version = version, 
    45       license = "GNU GPL", 
    46       description = "an end-user companion for PyKota", 
    47       author = "Jerome Alet", 
    48       author_email = "alet@librelogiciel.com", 
    49       url = "http://www.librelogiciel.com/software/", 
    50       windows=[os.path.join("bin", "pykoticon")], 
    51       #scripts=[os.path.join("bin", "pykoticon")], 
    52       data_files=[(directory, glob.glob(os.path.join("icons", "*.ico")))]) 
     44setupDictionary = { "name" : "pykoticon",  
     45                    "version" : version, 
     46                    "license" : "GNU GPL", 
     47                    "description" : "a generic, networked, cross-platform, dialog box manager", 
     48                    "author" : "Jerome Alet", 
     49                    "author_email" : "alet@librelogiciel.com", 
     50                    "url" : "http://www.librelogiciel.com/software/", 
     51                    "data_files" : [(directory, glob.glob(os.path.join("icons", "*.ico")))], 
     52                  } 
     53if withPy2EXE :       
     54    setupDictionary["windows"] = [os.path.join("bin", "pykoticon")] 
     55else :     
     56    setupDictionary["scripts"] = [os.path.join("bin", "pykoticon")] 
     57       
     58setup(**setupDictionary)