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.cmmi
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
Xavier Thompson
slapos.recipe.cmmi
Commits
734f9532
Commit
734f9532
authored
Sep 25, 2019
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
README: fix rst syntax
parent
249e1c45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
slapos/recipe/cmmi/README.rst
slapos/recipe/cmmi/README.rst
+17
-15
No files found.
slapos/recipe/cmmi/README.rst
View file @
734f9532
...
...
@@ -229,13 +229,13 @@ platform.machine().
platform could be '
linux
', '
cygwin
', '
macos
', '
sunos
', '
freebsd
',
'
netbsd
', '
unixware
' ... which equals a formatted sys.platform.
For example
,
For example
::
[bzip2]
recipe = slapos.recipe.cmmi
[bzip2]
recipe = slapos.recipe.cmmi
[bzip2:cygwin]
patches = cygwin-bzip2-1.0.6.src.patch
[bzip2:cygwin]
patches = cygwin-bzip2-1.0.6.src.patch
All the options in the [part:platform] have high priority level.
...
...
@@ -261,7 +261,7 @@ effects, recipe will return all the installed files in the prefix
directory. The own ``prefix`` of part will disable this behaviour.
If the ``buildout`` section has a valid ``prefix`` option, the recipe
will add it to environmet variables as the following:
will add it to environmet variables as the following:
:
PATH=${buildout:prefix}/bin:$PATH
CPPFLAGS=-I${buildout:prefix} $CPPFLAGS
...
...
@@ -780,7 +780,7 @@ prefix:
<BLANKLINE>
installing package
<BLANKLINE>
>>> ls('
mylocal
')
- a.txt
- b.txt
...
...
@@ -818,11 +818,11 @@ make-targets aren't set, if so, string "prefix=xxx" will be appended
in the make-targets. xxx is the final prefix of this recipe. We call
it Magic Prefix.
In these options magic prefix can be represented by
%(prefix)s
:
In these options magic prefix can be represented by
``%(prefix)s``
:
``
onfigure-command`` ``configure-options``
``make-binary``
``make-options`` ``make-targets``
``pre-configure``
``pre-build`` ``pre-install``
``post-install``
``
configure-command``, ``configure-options``,
``make-binary``
, ``make-options``, ``make-targets``,
``pre-configure``
, ``pre-build``, ``pre-install``,
``post-install``
For example::
...
...
@@ -831,7 +831,7 @@ For example::
The other part can refer to magic prefix of this part by
${part:prefix}, it will return the magic prefix, other than literal
value in the part section. For example
,
value in the part section. For example
::
>>> write('
buildout
.
cfg
',
... """
...
...
@@ -861,7 +861,7 @@ value in the part section. For example,
package-2: Executing post-install
package magic prefix is /mytemp
<BLANKLINE>
Here it'
s
another
sample
,
we
change
Makefile
before
installing
so
it
can
display
"prefix"
value
in
the
stdout
.
...
...
@@ -983,7 +983,7 @@ Look, "package" is reinstalled either:
installing
package
Install
shared
package
=====================
=====================
=
Use
option
``
shared
``
to
install
a
shared
pacakge
.
>>>
import
os
...
...
@@ -1004,7 +1004,7 @@ If no shared-parts is set, and shared is True, shared feature is not used:
... url = file://%s/package-0.0.0.tar.gz
... shared = True
... """
%
src
)
>>>
print
(
system
(
buildout
))
#
doctest
:+
ELLIPSIS
Uninstalling
package
.
Uninstalling
package
-
2.
...
...
@@ -1017,6 +1017,7 @@ If shared-parts is set and shared is True, build package failed, the build direc
a
build
directory__compile__
is
left
for
debugging
.
Also
a
shell
script
with
the
environment
variable
is
created
,
so
that
developer
can
try
same
build
process
as
the
recipe
tried
.
>>>
_
=
system
(
'mv %s/package-0.0.0.tar.gz %s/package-0.0.0.tar.gz.bak'
%
(
src
,
src
))
>>>
import
tarfile
>>>
from
io
import
BytesIO
...
...
@@ -1072,6 +1073,7 @@ If shared-parts is set and shared is True, package will be installed in shared_p
installing package
Do nothing if one package has been installed.
>>> remove('
.
installed
.
cfg
')
>>> write('
buildout
.
cfg
',
... """
...
...
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