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
279def6a
Commit
279def6a
authored
Sep 17, 2012
by
Domen Kožar
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
a1b779e1
d1d05306
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
5 deletions
+21
-5
CHANGES.txt
CHANGES.txt
+6
-0
src/zc/buildout/easy_install.py
src/zc/buildout/easy_install.py
+11
-1
src/zc/buildout/update.txt
src/zc/buildout/update.txt
+4
-4
No files found.
CHANGES.txt
View file @
279def6a
...
...
@@ -8,6 +8,12 @@ Change History
in current directory during installation
[Domen Kožar]
- 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
- fixed all builds on travis-ci
[Domen Kožar]
...
...
src/zc/buildout/easy_install.py
View file @
279def6a
...
...
@@ -30,6 +30,7 @@ import setuptools.archive_util
import
setuptools.command.setopt
import
setuptools.package_index
import
shutil
import
struct
import
subprocess
import
sys
import
tempfile
...
...
@@ -51,6 +52,7 @@ logger = logging.getLogger('zc.buildout.easy_install')
url_match
=
re
.
compile
(
'[a-z0-9+.-]+://'
).
match
is_win32
=
sys
.
platform
==
'win32'
is_64
=
struct
.
calcsize
(
"P"
)
==
8
is_jython
=
sys
.
platform
.
startswith
(
'java'
)
is_distribute
=
(
pkg_resources
.
Requirement
.
parse
(
'setuptools'
).
key
==
'distribute'
)
...
...
@@ -1460,6 +1462,14 @@ def _write_script(full_name, contents, logged_type):
script_name
+=
'-script.py'
# Generate exe file and give the script a magic name.
exe
=
full_name
+
'.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
):
# Only write it if it's different.
...
...
src/zc/buildout/update.txt
View file @
279def6a
...
...
@@ -267,10 +267,10 @@ caught (displaying a warning) and the rest of the buildout update process
should continue.
>>> version = sys.version_info[0:2]
>>> egg = new_releases + '/zc.buildout-99.99-py%s.%s.egg
' % version
>>> copy_egg = new_releases + '/zc.buildout-1000-py%s.%s.egg
' % version
>>>
system('cp ' + egg + copy_egg)
''
>>> egg = new_releases + '/zc.buildout-99.99-py%s.%s.egg' % version
>>> copy_egg = new_releases + '/zc.buildout-1000-py%s.%s.egg' % version
>>>
import shutil
>>> shutil.copy(egg, copy_egg)
Create a broken egg
...
...
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