Lines 47-52
Link Here
|
47 |
# global variables |
47 |
# global variables |
48 |
app = 'gosiege' |
48 |
app = 'gosiege' |
49 |
windows_style = (os.name == 'nt') |
49 |
windows_style = (os.name == 'nt') |
|
|
50 |
scripts = [] # scripts to install |
50 |
|
51 |
|
51 |
# use windows style setup if building a bdist_wininst regardless of platform |
52 |
# use windows style setup if building a bdist_wininst regardless of platform |
52 |
if (sys.argv[1] == 'bdist_wininst'): |
53 |
if (sys.argv[1] == 'bdist_wininst'): |
Lines 150-155
Link Here
|
150 |
if (using_py2exe): |
151 |
if (using_py2exe): |
151 |
kwargs['windows'] = ['bin/gosiege'] |
152 |
kwargs['windows'] = ['bin/gosiege'] |
152 |
|
153 |
|
|
|
154 |
# scripts |
155 |
# only install bin/gosiege if pygtk is installed |
156 |
try: |
157 |
import pygtk |
158 |
except ImportError: |
159 |
got_pygtk = 0 |
160 |
else: |
161 |
got_pygtk = 1 |
162 |
|
163 |
if (got_pygtk): |
164 |
try: |
165 |
pygtk.require('2.0') |
166 |
except AssertionError: |
167 |
pass |
168 |
else: |
169 |
scripts.extend(['bin/gosiege']) |
170 |
|
153 |
# Setup |
171 |
# Setup |
154 |
setup(name=app, |
172 |
setup(name=app, |
155 |
version=copyright.version, |
173 |
version=copyright.version, |
Lines 159-165
Link Here
|
159 |
url="http://www.stranex.com/~perspex/gosige/", |
177 |
url="http://www.stranex.com/~perspex/gosige/", |
160 |
license='GNU General Public License', |
178 |
license='GNU General Public License', |
161 |
packages=['gosiege', 'gosiege.test'], |
179 |
packages=['gosiege', 'gosiege.test'], |
162 |
scripts=['bin/gosiege'], |
180 |
scripts=scripts, |
163 |
data_files=data_files, |
181 |
data_files=data_files, |
164 |
cmdclass={'build_py': build_py_go, |
182 |
cmdclass={'build_py': build_py_go, |
165 |
'build_scripts': build_scripts_go, |
183 |
'build_scripts': build_scripts_go, |