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
2abf0883
Commit
2abf0883
authored
10 years ago
by
Kazuhiko Shiozaki
Committed by
Xavier Thompson
1 year ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[feat] Add setup-eggs option in zc.recipe.egg:custom.
parent
3e1e03de
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
1 deletion
+27
-1
src/zc/buildout/easy_install.py
src/zc/buildout/easy_install.py
+6
-1
zc.recipe.egg_/src/zc/recipe/egg/custom.py
zc.recipe.egg_/src/zc/recipe/egg/custom.py
+17
-0
zc.recipe.egg_/src/zc/recipe/egg/custom.rst
zc.recipe.egg_/src/zc/recipe/egg/custom.rst
+4
-0
No files found.
src/zc/buildout/easy_install.py
View file @
2abf0883
...
@@ -1796,7 +1796,12 @@ def call_pip_install(spec, dest):
...
@@ -1796,7 +1796,12 @@ def call_pip_install(spec, dest):
env
=
os
.
environ
.
copy
()
env
=
os
.
environ
.
copy
()
python_path
=
pip_path
[:]
python_path
=
pip_path
[:]
python_path
.
append
(
env
.
get
(
'PYTHONPATH'
,
''
))
env_paths
=
env
.
get
(
'PYTHONPATH'
)
if
env_paths
:
python_path
.
append
(
env_paths
)
extra_env_path
=
env
.
get
(
'PYTHONEXTRAPATH'
)
if
extra_env_path
:
python_path
.
append
(
extra_env_path
)
env
[
'PYTHONPATH'
]
=
os
.
pathsep
.
join
(
python_path
)
env
[
'PYTHONPATH'
]
=
os
.
pathsep
.
join
(
python_path
)
if
level
<=
logging
.
DEBUG
:
if
level
<=
logging
.
DEBUG
:
...
...
This diff is collapsed.
Click to expand it.
zc.recipe.egg_/src/zc/recipe/egg/custom.py
View file @
2abf0883
...
@@ -83,6 +83,23 @@ class Custom(Base):
...
@@ -83,6 +83,23 @@ class Custom(Base):
distribution
=
options
.
get
(
'egg'
,
options
.
get
(
'eggs'
,
self
.
name
)
distribution
=
options
.
get
(
'egg'
,
options
.
get
(
'eggs'
,
self
.
name
)
).
strip
()
).
strip
()
setup_eggs
=
[
r
.
strip
()
for
r
in
options
.
get
(
'setup-eggs'
,
''
).
split
(
'
\
n
'
)
if
r
.
strip
()]
if
setup_eggs
:
ws
=
zc
.
buildout
.
easy_install
.
install
(
setup_eggs
,
options
[
'_e'
],
links
=
self
.
links
,
index
=
self
.
index
,
executable
=
sys
.
executable
,
path
=
[
options
[
'_d'
],
options
[
'_e'
]],
newest
=
self
.
newest
,
)
extra_path
=
os
.
pathsep
.
join
(
ws
.
entries
)
self
.
environment
[
'PYTHONEXTRAPATH'
]
=
os
.
environ
[
'PYTHONEXTRAPATH'
]
=
extra_path
self
.
_set_environment
()
self
.
_set_environment
()
try
:
try
:
return
zc
.
buildout
.
easy_install
.
build
(
return
zc
.
buildout
.
easy_install
.
build
(
...
...
This diff is collapsed.
Click to expand it.
zc.recipe.egg_/src/zc/recipe/egg/custom.rst
View file @
2abf0883
...
@@ -20,6 +20,10 @@ rpath
...
@@ -20,6 +20,10 @@ rpath
A new-line separated list of directories to search for dynamic libraries
A new-line separated list of directories to search for dynamic libraries
at run time.
at run time.
setup-eggs
A new-line separated list of eggs that need to be installed
beforehand. It is useful to meet the `setup_requires` requirement.
define
define
A comma-separated list of names of C preprocessor variables to
A comma-separated list of names of C preprocessor variables to
define.
define.
...
...
This diff is collapsed.
Click to expand it.
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