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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
slapos.buildout
Commits
23c85945
Commit
23c85945
authored
Aug 24, 2012
by
Adam Groszer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Windows fix: use cli-64.exe/cli.exe depending on 64/32 bit
parent
23391efa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
CHANGES.txt
CHANGES.txt
+4
-0
src/zc/buildout/easy_install.py
src/zc/buildout/easy_install.py
+9
-1
No files found.
CHANGES.txt
View file @
23c85945
...
@@ -4,6 +4,10 @@ Change History
...
@@ -4,6 +4,10 @@ Change History
1.6.4 (unreleased)
1.6.4 (unreleased)
==================
==================
- Windows fix: use cli-64.exe/cli.exe depending on 64/32 bit
and try cli.exe if cli-64.exe is not found,
fixing 9c6be7ac6d218f09e33725e07dccc4af74d8cf97
- Windows fix: `buildout init` was broken, re.sub does not like a single backslash
- Windows fix: `buildout init` was broken, re.sub does not like a single backslash
- fixed all builds on travis-ci
- fixed all builds on travis-ci
...
...
src/zc/buildout/easy_install.py
View file @
23c85945
...
@@ -1462,7 +1462,15 @@ def _write_script(full_name, contents, logged_type):
...
@@ -1462,7 +1462,15 @@ def _write_script(full_name, contents, logged_type):
script_name
+=
'-script.py'
script_name
+=
'-script.py'
# Generate exe file and give the script a magic name.
# Generate exe file and give the script a magic name.
exe
=
full_name
+
'.exe'
exe
=
full_name
+
'.exe'
new_data
=
pkg_resources
.
resource_string
(
'setuptools'
,
'cli-64.exe'
if
is_64
else
'cli-32.exe'
)
if
is_64
:
resource
=
'cli-64.exe'
else
:
resource
=
'cli.exe'
try
:
new_data
=
pkg_resources
.
resource_string
(
'setuptools'
,
resource
)
except
IOError
:
# setuptools has just cli.exe, no matter if 64/32 bit
new_data
=
pkg_resources
.
resource_string
(
'setuptools'
,
'cli.exe'
)
if
not
os
.
path
.
exists
(
exe
)
or
(
open
(
exe
,
'rb'
).
read
()
!=
new_data
):
if
not
os
.
path
.
exists
(
exe
)
or
(
open
(
exe
,
'rb'
).
read
()
!=
new_data
):
# Only write it if it's different.
# Only write it if it's different.
open
(
exe
,
'wb'
).
write
(
new_data
)
open
(
exe
,
'wb'
).
write
(
new_data
)
...
...
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