Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.recipe.build
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
Xiaowu Zhang
slapos.recipe.build
Commits
275d6e01
Commit
275d6e01
authored
Sep 08, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into suggested-improvements
Conflicts: slapos/recipe/build.py
parents
42342905
319c7223
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
4 deletions
+14
-4
CHANGES.txt
CHANGES.txt
+6
-1
setup.py
setup.py
+1
-1
slapos/recipe/build.py
slapos/recipe/build.py
+4
-2
slapos/recipe/download.py
slapos/recipe/download.py
+3
-0
No files found.
CHANGES.txt
View file @
275d6e01
Changes
=======
0.
5
(unreleased)
0.
6
(unreleased)
----------------
* No changes yet.
0.5 (2011-09-06)
----------------
* Download: Expose location too for compatiblity. [Łukasz Nowak]
0.4 (2011-09-06)
----------------
...
...
setup.py
View file @
275d6e01
from
setuptools
import
setup
,
find_packages
version
=
'0.
5
-dev'
version
=
'0.
6
-dev'
name
=
'slapos.recipe.build'
long_description
=
open
(
"README.txt"
).
read
()
+
"
\
n
"
+
\
open
(
"CHANGES.txt"
).
read
()
+
"
\
n
"
...
...
slapos/recipe/build.py
View file @
275d6e01
...
...
@@ -341,6 +341,8 @@ class Script:
patch_options
=
shlex
.
split
(
patch_options
)
if
patch_binary
is
None
:
patch_binary
=
'patch'
else
:
patch_binary
=
patch_binary
.
strip
()
kwargs
=
dict
()
if
cwd
is
not
None
:
kwargs
[
'cwd'
]
=
cwd
...
...
@@ -374,14 +376,14 @@ configure_command = self.options.get('configure-command')
if configure_command is None or configure_command.lower() == 'None':
configure_command = ["./configure", "--prefix=%(location)s"] + %(configure-options)r.split()
else:
configure_command = configure_command.split(
' '
)
configure_command = configure_command.split()
self.logger.info('Configuring with: %%r' %% ' '.join(configure_command))
self.applyPatchList(self.options.get('patches'), self.options.get('patch-options'), self.options.get('patch-binary'), workdir)
call(configure_command, cwd=workdir, env=env)
make_command = [self.options.get('make-binary', "make")]
make_options = self.options.get('make-options')
if make_options is not None:
make_command.extend(make_options.split(
' '
))
make_command.extend(make_options.split())
self.logger.info('Building with %%r' %% ' '.join(make_command))
call(make_command, cwd=workdir, env=env)
make_command.append('install')
...
...
slapos/recipe/download.py
View file @
275d6e01
...
...
@@ -44,6 +44,9 @@ class Recipe:
self
.
name
)
self
.
destination
=
os
.
path
.
join
(
self
.
parts
,
self
.
options
.
get
(
'filename'
,
self
.
name
))
# backward compatibility with other recipes -- expose location
options
[
'location'
]
=
os
.
path
.
join
(
self
.
buildout
[
'buildout'
][
'parts-directory'
],
self
.
name
)
options
[
'target'
]
=
self
.
destination
def
install
(
self
):
...
...
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