Skip to content

Commit 096b62f

Browse files
author
stonebig
committed
pep 8 + now building with python 3.4.2
1 parent 39a5cb4 commit 096b62f

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

make.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def __init__(self, build_number, release_level, target, instdir,
158158
@property
159159
def package_index_wiki(self):
160160
"""Return Package Index page in Wiki format"""
161-
installed_tools = [('gettext', '0.14.4'), ('SciTE', '3.3.7')]
161+
installed_tools = [('gettext', '0.14.4'), ('SciTE', '3.3.7')]
162162

163163
def get_tool_path(relpath, checkfunc):
164164
if self.simulation:
@@ -228,7 +228,7 @@ def winpy_arch(self):
228228
def pyqt_arch(self):
229229
"""Return distribution architecture, in PyQt format: x32/x64"""
230230
return 'x%d' % self.distribution.architecture
231-
231+
232232
@property
233233
def py_arch(self):
234234
"""Return distribution architecture, in Python distutils format:
@@ -297,7 +297,7 @@ def create_batch_script(self, name, contents):
297297
fd = open(osp.join(scriptdir, name), 'w')
298298
fd.write(contents)
299299
fd.close()
300-
300+
301301
def create_launcher(self, name, icon, command=None,
302302
args=None, workdir=None, settingspath=None):
303303
"""Create exe launcher with NSIS"""
@@ -453,7 +453,7 @@ def _install_required_packages(self):
453453
'PyQwt-([0-9\.]*)-py%s-%s-([a-z0-9\.\-]*).exe'
454454
% (self.python_version, self.pyqt_arch))
455455

456-
# Install 'main packages' first (was before Wheel idea, keep for now)
456+
# Install 'main packages' first (was before Wheel idea, keep for now)
457457
for happy_few in['numpy-MKL', 'scipy', 'matplotlib', 'pandas']:
458458
self.install_package(
459459
'%s-([0-9\.]*[a-z]*[0-9]?).%s(-py%s)?.exe'
@@ -649,7 +649,6 @@ def _create_batch_scripts(self):
649649
set R_HOME=%WINPYDIR%\..\tools\%tmp_Rdirectory%\
650650
set R_HOMEbin=%WINPYDIR%\..\tools\%tmp_Rdirectory%\bin
651651
652-
653652
set SYS_PATH=%PATH%
654653
set PATH=%SYS_PATH%;%R_HOMEbin%
655654
@@ -667,7 +666,7 @@ def _create_batch_scripts(self):
667666
# Prepare a live patch on python (shame we need it) to have mingw64ok
668667
patch_distutils = ""
669668
if self.py_arch == "win-amd64":
670-
patch_distutils=r"""
669+
patch_distutils = r"""
671670
%~dp0Find_And_replace.vbs "%WINPYDIR%\Lib\distutils\cygwinccompiler.py" "-O -W" "-O -DMS_WIN64 -W"
672671
673672
set WINPYXX=%WINPYVER:~0,1%%WINPYVER:~2,1%
@@ -690,8 +689,9 @@ def _create_batch_scripts(self):
690689
..\tools\mingw32\bin\dlltool -D python%WINPYXX%.dll -d python%WINPYXX%.def -l libpython%WINPYXX%.dll.a
691690
move /Y libpython%WINPYXX%.dll.a libs
692691
del python%WINPYXX%.def
693-
"""
694-
self.create_batch_script('Find_And_replace.vbs',r"""
692+
"""
693+
694+
self.create_batch_script('Find_And_replace.vbs', r"""
695695
' from http://stackoverflow.com/questions/15291341/
696696
' a-batch-file-to-read-a-file-and-replace-a-string-with-a-new-one
697697
@@ -714,7 +714,7 @@ def _create_batch_scripts(self):
714714
outputFile.Write result_text
715715
outputFile.Close
716716
Set outputFile = Nothing
717-
end if
717+
end if
718718
end function
719719
""")
720720

@@ -777,9 +777,9 @@ def _create_batch_scripts(self):
777777
workdir=r'Lib\site-packages\PyQt4\examples\demos\qtdemo')
778778

779779
# pre-run wingw batch
780-
print ('now pre-running extra mingw')
780+
print('now pre-running extra mingw')
781781
filepath = osp.join(self.winpydir, 'scripts', 'make_cython_use_mingw.bat')
782-
p = subprocess.Popen(filepath, shell=True, stdout = subprocess.PIPE)
782+
p = subprocess.Popen(filepath, shell=True, stdout=subprocess.PIPE)
783783
stdout, stderr = p.communicate()
784784

785785
self._print_done()
@@ -837,12 +837,12 @@ def make(self, remove_existing=True):
837837
if not self.simulation:
838838
self._create_launchers()
839839
self._create_batch_scripts()
840-
840+
841841
if remove_existing and not self.simulation:
842842
self._print("Cleaning up distribution")
843843
self.distribution.clean_up()
844844
self._print_done()
845-
845+
846846
# Writing package index
847847
self._print("Writing package index")
848848
fname = osp.join(self.winpydir, os.pardir,
@@ -946,7 +946,7 @@ def make_all(build_number, release_level, pyver,
946946

947947
#make_all(1, '', pyver='3.4', rootdir=r'D:\Winpython',
948948
# verbose=False, archis=(32, ))
949-
make_all(2, '', pyver='3.4', rootdir=r'D:\Winpython',
949+
make_all(1, '', pyver='3.4', rootdir=r'D:\Winpython',
950950
verbose=False, archis=(64, ))
951951
#make_all(2, '', pyver='3.3', rootdir=r'D:\Winpython',
952952
# verbose=False, archis=(32, ))

0 commit comments

Comments
 (0)