Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
HongzheWang
slapos
Commits
ee73ec0a
Commit
ee73ec0a
authored
Apr 14, 2021
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New component: meson
https://mesonbuild.com/
parent
6170ca54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
component/meson/buildout.cfg
component/meson/buildout.cfg
+36
-0
No files found.
component/meson/buildout.cfg
0 → 100644
View file @
ee73ec0a
[buildout]
extends =
../python3/buildout.cfg
parts =
meson
[meson]
recipe = slapos.recipe.cmmi
shared = true
url = https://github.com/mesonbuild/meson/releases/download/${:version}/meson-${:version}.tar.gz
version = 0.57.2
md5sum = 4a07b6d42d7a46a6b6e9604fae7da9aa
configure-command = true
make-binary = true
post-install =
%(python)s -m venv %(location)s
set %(location)s/bin/python3
$1 setup.py install_data install_lib
$1 <<EOF
import os, pkg_resources, sys
for name, ep in pkg_resources.get_entry_map(
'meson==%(version)s', 'console_scripts').items():
fd = os.open(%(location)r '/bin/' + name, os.O_WRONLY|os.O_CREAT|os.O_EXCL)
os.write(fd, ("""#!$1
import os, sys
from %%s import %%s
if __name__ == '__main__':
sys.exit(%%s())
""" %% (ep.module_name, ep.attrs[0], '.'.join(ep.attrs))).encode())
os.close(fd)
EOF
%(location)s/bin/pip uninstall -y pip setuptools
python = ${python3:executable}
[meson:python3]
python = ${buildout:executable}
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