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
Xavier Thompson
slapos.buildout
Commits
e079b796
Commit
e079b796
authored
Oct 28, 2015
by
Reinout van Rees
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #278 from buildout/reinout-relative-test
Same as #277, but with test and changelog entry
parents
039ac65d
833924d7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
CHANGES.rst
CHANGES.rst
+3
-1
src/zc/buildout/easy_install.py
src/zc/buildout/easy_install.py
+2
-0
src/zc/buildout/easy_install.txt
src/zc/buildout/easy_install.txt
+3
-1
No files found.
CHANGES.rst
View file @
e079b796
...
...
@@ -4,7 +4,9 @@ Change History
2.4.6
(
unreleased
)
==================
-
Nothing
changed
yet
.
-
Relative
paths
are
now
also
correctly
generated
for
the
current
directory
(
"develop = ."
).
[
youngking
]
2.4.5
(
2015
-
10
-
14
)
...
...
src/zc/buildout/easy_install.py
View file @
e079b796
...
...
@@ -1152,6 +1152,8 @@ def _relative_path(common, path):
def
_relativitize
(
path
,
script
,
relative_paths
):
if
path
==
script
:
raise
AssertionError
(
"path == script"
)
if
path
==
relative_paths
:
return
"base"
common
=
os
.
path
.
dirname
(
os
.
path
.
commonprefix
([
path
,
script
]))
if
(
common
==
relative_paths
or
common
.
startswith
(
os
.
path
.
join
(
relative_paths
,
''
))
...
...
src/zc/buildout/easy_install.txt
View file @
e079b796
...
...
@@ -835,7 +835,7 @@ to pass a common base directory of the scripts and eggs:
>>> scripts = zc.buildout.easy_install.scripts(
... ['demo'], ws, sys.executable, join(bo, 'bin'), dict(demo='run'),
... extra_paths=[ba, join(bo, 'bar')],
... extra_paths=[ba, join(bo, 'bar')
, bo
],
... interpreter='py',
... relative_paths=bo)
...
...
@@ -854,6 +854,7 @@ to pass a common base directory of the scripts and eggs:
join(base, 'eggs/demoneeded-1.1-pyN.N.egg'),
'/ba',
join(base, 'bar'),
base,
]
<BLANKLINE>
import eggrecipedemo
...
...
@@ -887,6 +888,7 @@ We specified an interpreter and its paths are adjusted too:
join(base, 'eggs/demoneeded-1.1-pyN.N.egg'),
'/ba',
join(base, 'bar'),
base,
]
<BLANKLINE>
_interactive = True
...
...
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