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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos.buildout
Commits
422d4394
Commit
422d4394
authored
Jul 18, 2008
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't write .exe files if the files exist and are the same. This makes
stupid windows errors less likely.
parent
61579d28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/zc/buildout/easy_install.py
src/zc/buildout/easy_install.py
+4
-3
No files found.
src/zc/buildout/easy_install.py
View file @
422d4394
...
@@ -925,9 +925,10 @@ def _script(module_name, attrs, path, dest, executable, arguments,
...
@@ -925,9 +925,10 @@ def _script(module_name, attrs, path, dest, executable, arguments,
if
sys
.
platform
==
'win32'
:
if
sys
.
platform
==
'win32'
:
# generate exe file and give the script a magic name:
# generate exe file and give the script a magic name:
exe
=
script
+
'.exe'
exe
=
script
+
'.exe'
open
(
exe
,
'wb'
).
write
(
new_data
=
pkg_resources
.
resource_string
(
'setuptools'
,
'cli.exe'
)
pkg_resources
.
resource_string
(
'setuptools'
,
'cli.exe'
)
if
not
os
.
path
.
exists
(
exe
)
or
(
open
(
exe
,
'rb'
).
read
()
!=
new_data
):
)
# Only write it if it's different.
open
(
exe
,
'wb'
).
write
(
new_data
)
generated
.
append
(
exe
)
generated
.
append
(
exe
)
if
changed
:
if
changed
:
...
...
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