Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nxd-bom
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
nxd-bom
Commits
59db6ac4
Commit
59db6ac4
authored
Jun 05, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for zc.recipe.egg:develop
parent
b1742031
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
nxdbom/__init__.py
nxdbom/__init__.py
+6
-2
nxdbom/nxdbom_test.py
nxdbom/nxdbom_test.py
+6
-0
No files found.
nxdbom/__init__.py
View file @
59db6ac4
...
...
@@ -138,10 +138,14 @@ def bom_software(installed_software_path): # -> {} name -> PkgInfo
assert
'inline'
in
part
,
part
elif
recipe
==
'zc.recipe.egg:custom'
:
elif
recipe
in
(
'zc.recipe.egg:custom'
,
'zc.recipe.egg:develop'
)
:
eggpath
=
part
[
'__buildout_installed__'
]
assert
len
(
eggpath
.
split
())
==
1
,
eggpath
# no spaces inside - just one item
addbom
(
eggpath
,
'egg'
)
isegg
=
eggpath
.
endswith
(
'.egg'
)
islink
=
eggpath
.
endswith
(
'.egg-link'
),
assert
isegg
or
islink
,
eggpath
if
isegg
:
# ignore .egg-link - we declare it through the place
addbom
(
eggpath
,
'egg'
)
# from where destination is downloaded from
elif
recipe
==
'zc.recipe.egg'
:
# XXX sadly zc.recipe.egg neither saves in .installed.cfg information about where the eggs are installed,
...
...
nxdbom/nxdbom_test.py
View file @
59db6ac4
...
...
@@ -132,6 +132,12 @@ url = /srv/slapgrid/slappart47/srv/project/slapos/stack/logrotate/instance-logro
"""
,
''
)
# config ignored
case1
(
"""
\
[neoppod-develop]
recipe = zc.recipe.egg:develop
__buildout_installed__ = /ROOT/develop-eggs/neoppod.egg-link
"""
,
''
)
# .egg-link ignored
case1
(
"""
\
[python-mysqlclient]
recipe = zc.recipe.egg:custom
...
...
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