Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
6
Merge Requests
6
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
slapos.buildout
Commits
c14c9783
Commit
c14c9783
authored
Aug 21, 2012
by
Adam Groszer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
yes! this works. tested with windows xp/python2.5, windows server 2003/py2.7
removing debugger, adding comments
parent
8e4311ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
dev.py
dev.py
+0
-1
src/zc/buildout/easy_install.py
src/zc/buildout/easy_install.py
+3
-4
No files found.
dev.py
View file @
c14c9783
...
...
@@ -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'
)
...
...
src/zc/buildout/easy_install.py
View file @
c14c9783
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment