Commit c14c9783 authored by Adam Groszer's avatar Adam Groszer

yes! this works. tested with windows xp/python2.5, windows server 2003/py2.7

removing debugger, adding comments
parent 8e4311ca
......@@ -106,7 +106,6 @@ if subprocess.call(
pkg_resources.working_set.add_entry('src')
import zc.buildout.easy_install
#from dbgp.client import brk; brk('127.0.0.1')
zc.buildout.easy_install.scripts(
['zc.buildout'], pkg_resources.working_set , sys.executable, 'bin')
......
......@@ -1064,11 +1064,10 @@ def _create_script(contents, dest):
if is_win32:
# generate exe file and give the script a magic name:
#from dbgp.client import brk; brk('127.0.0.1')
win32_exe = os.path.splitext(dest)[0]
win32_exe = os.path.splitext(dest)[0] # remove ".py"
if win32_exe.endswith('-script'):
win32_exe = win32_exe[:-7]
win32_exe = win32_exe + '.exe'
win32_exe = win32_exe[:-7] # remove "-script"
win32_exe = win32_exe + '.exe' # add ".exe"
new_data = pkg_resources.resource_string('setuptools', 'cli.exe')
if not os.path.exists(win32_exe) or (open(win32_exe, 'rb').read() != new_data):
# Only write it if it's different.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment