~shakaran/tivion/daily

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Ángel Guzmán Maeso (shakaran)
  • Date: 2010-03-27 05:27:11 UTC
  • Revision ID: shakaran@gmail.com-20100327052711-sr17mmokhlhlbdhc
Update rules/control/changelog/setup.py for generate .deb and tar.gz

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
For debug:
23
23
set DISTUTILS_DEBUG=True
24
24
"""
 
25
import platform
 
26
 
25
27
import distutils
26
28
import distutils.file_util
27
29
import distutils.sysconfig
28
 
import distutils.command.bdist_msi
 
30
if platform.system() == 'Windows':
 
31
    import distutils.command.bdist_msi
29
32
from distutils.command.build import show_compilers
30
33
from distutils.core import setup
31
34
from distutils.command.install_data import install_data
119
122
 
120
123
# patch distutils if it can't cope with the "classifiers" or
121
124
# "download_url" keywords
122
 
import platform
 
125
 
123
126
import os
124
127
import sys
125
128
reload(sys)
156
159
        #[TODO]Put windows path here
157
160
    if arg.startswith('bdist_rpm'):
158
161
        #[TODO]Put fedora path here"""
159
 
        
160
 
import src.constants as cons
161
 
 
162
 
print '=== Installer for', cons.VERSION, '==='
 
162
 
 
163
if platform.system() == 'Windows': 
 
164
    import src.constants as cons
 
165
else:
 
166
    VERSION = 'Tivion 0.0.4'
 
167
 
 
168
print '=== Installer for', VERSION, '==='
163
169
print 'Plataform:', distutils.util.get_platform()
164
170
lib_dir = get_python_lib(plat_specific = 1)
165
171
print 'Lib dir:', lib_dir