Thread: [javascriptlint-commit] SF.net SVN: javascriptlint:[260] trunk/setup.py
Status: Beta
Brought to you by:
matthiasmiller
From: <mat...@us...> - 2009-10-03 19:20:29
|
Revision: 260 http://javascriptlint.svn.sourceforge.net/javascriptlint/?rev=260&view=rev Author: matthiasmiller Date: 2009-10-03 19:20:23 +0000 (Sat, 03 Oct 2009) Log Message: ----------- Python 2.4 doesn't have subprocess.check_call. Modified Paths: -------------- trunk/setup.py Modified: trunk/setup.py =================================================================== --- trunk/setup.py 2009-10-03 18:17:28 UTC (rev 259) +++ trunk/setup.py 2009-10-03 19:20:23 UTC (rev 260) @@ -7,18 +7,25 @@ import subprocess import sys +class _MakefileError(Exception): + pass + def _runmakefiles(distutils_dir, build_opt=1, args=[]): # First build SpiderMonkey. - subprocess.check_call(['make', '-f', 'Makefile.ref', '-C', + ret = subprocess.call(['make', '-f', 'Makefile.ref', '-C', 'spidermonkey/src', 'BUILD_OPT=%i' % build_opt] + \ - args) + args) + if ret != 0: + raise _MakefileError, 'Error running make.' # Then copy the files to the build directory. env = dict(os.environ) if distutils_dir: env['DISTUTILS_DIR'] = distutils_dir - subprocess.check_call(['make', '-f', 'Makefile.SpiderMonkey', - 'BUILD_OPT=%i' % build_opt] + args, env=env) + ret = subprocess.call(['make', '-f', 'Makefile.SpiderMonkey', + 'BUILD_OPT=%i' % build_opt] + args, env=env) + if ret != 0: + raise _MakefileError, 'Error running make.' class _MyBuild(distutils.command.build.build): def run(self): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mat...@us...> - 2009-10-26 02:46:47
|
Revision: 288 http://javascriptlint.svn.sourceforge.net/javascriptlint/?rev=288&view=rev Author: matthiasmiller Date: 2009-10-26 02:46:37 +0000 (Mon, 26 Oct 2009) Log Message: ----------- Augment the py2exe build to run the executable through upx. Modified Paths: -------------- trunk/setup.py Modified: trunk/setup.py =================================================================== --- trunk/setup.py 2009-10-22 15:39:55 UTC (rev 287) +++ trunk/setup.py 2009-10-26 02:46:37 UTC (rev 288) @@ -7,7 +7,7 @@ import subprocess import sys -class _MakefileError(Exception): +class _BuildError(Exception): pass def _runmakefiles(distutils_dir, build_opt=1, target=None): @@ -22,12 +22,12 @@ ret = subprocess.call(['make', '-f', 'Makefile.ref', '-C', 'spidermonkey/src', 'XCFLAGS=-MT'] + args) if ret != 0: - raise _MakefileError, 'Error running make.' + raise _BuildError, 'Error running make.' # Then copy the files to the build directory. ret = subprocess.call(['make', '-f', 'Makefile.SpiderMonkey'] + args) if ret != 0: - raise _MakefileError, 'Error running make.' + raise _BuildError, 'Error running make.' class _MyBuild(distutils.command.build.build): def run(self): @@ -79,12 +79,22 @@ except ImportError: pass else: + class _MyPy2Exe(py2exe.build_exe.py2exe): + def run(self): + py2exe.build_exe.py2exe.run(self) + for exe in self.console_exe_files: + ret = subprocess.call(['upx', '-9', exe]) + if ret != 0: + raise _BuildError, 'Error running upx on %s' % exe + args['cmdclass']['py2exe'] = _MyPy2Exe + args.update( console = ['jsl'], options = { 'py2exe': { 'excludes': ['javascriptlint.spidermonkey_'], - 'bundle_files': 1 + 'bundle_files': 1, + 'optimize': 2, } }, zipfile = None This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mat...@us...> - 2009-10-29 06:48:55
|
Revision: 289 http://javascriptlint.svn.sourceforge.net/javascriptlint/?rev=289&view=rev Author: matthiasmiller Date: 2009-10-29 06:48:30 +0000 (Thu, 29 Oct 2009) Log Message: ----------- Fix build on Linux. Modified Paths: -------------- trunk/setup.py Modified: trunk/setup.py =================================================================== --- trunk/setup.py 2009-10-26 02:46:37 UTC (rev 288) +++ trunk/setup.py 2009-10-29 06:48:30 UTC (rev 289) @@ -19,8 +19,11 @@ # First build SpiderMonkey. Force it to link statically against the CRT to # make deployment easier. + if os.name == 'nt': + args.append('XCFLAGS=-MT') + ret = subprocess.call(['make', '-f', 'Makefile.ref', '-C', - 'spidermonkey/src', 'XCFLAGS=-MT'] + args) + 'spidermonkey/src'] + args) if ret != 0: raise _BuildError, 'Error running make.' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mat...@us...> - 2018-01-02 21:42:45
|
Revision: 377 http://sourceforge.net/p/javascriptlint/code/377 Author: matthiasmiller Date: 2018-01-02 21:42:44 +0000 (Tue, 02 Jan 2018) Log Message: ----------- Remove unnecessary files from the py2exe bundle. Modified Paths: -------------- trunk/setup.py Modified: trunk/setup.py =================================================================== --- trunk/setup.py 2018-01-02 21:36:45 UTC (rev 376) +++ trunk/setup.py 2018-01-02 21:42:44 UTC (rev 377) @@ -47,9 +47,22 @@ console = ['jsl'], options = { 'py2exe': { - 'excludes': ['resource'], + 'excludes': [ + 'resource', + 'bz2', + '_ssl', + '_hashlib', + 'socket', + 'select' + ], 'bundle_files': 1, 'optimize': 1, # requires 1 to preserve docstrings + 'dll_excludes': [ + 'mswsock.dll', + 'powrprof.dll', + 'CRYPT32.dll' + ] + } }, zipfile = None This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |