-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add python-lxns subproject and rework build options
python-lxns is a Linux namespaces library that I developed for bubblejail. This fixes `slirp4netns` and `namespaces_limits` services being only available on x86_64. The reworked build options: * `allow-site-packages-dir`: replaces the `use_python_site_packages_dir`. Set to "false" by default and prevents installation of bubblejail Python modules in to the `site-packages` directory. bubblejail should now be called with `-Dpython.platlibdir=lib/bubblejail/python-packages` and `-Dpython.purelibdir=lib/bubblejail/python-packages` to use version independent directory for Python modules. * `use-vendored-python-lxns`: install vendored python-lxns using meson's subproject. Python-lxns was also added to the git submodules. Deleted `bytecode-optimization` option. Now meson's `python.bytecompile=1` is used instead.
- Loading branch information
Showing
15 changed files
with
48 additions
and
324 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
# SPDX-FileCopyrightText: 2024 igo95862 | ||
[submodule "subprojects/python-lxns"] | ||
path = subprojects/python-lxns | ||
url = https://github.com/igo95862/python-lxns.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
# SPDX-FileCopyrightText: 2022 igo95862 | ||
option('use_python_site_packages_dir', type: 'boolean', value: false, description: 'Use pythons site-packages dir for bubblejail python package instead of version independent location.') | ||
option('version_display', type: 'string', value: '', description: 'Custom --version display.') | ||
option('bytecode-optimization', type : 'integer', min : 0, max : 2, value : 1) | ||
option('generate-namespaces-constants', type: 'boolean', value: false, description: 'Generate new namespace constants rather than using x86_64 pre-generated file. This option is under development. DO NOT USE') | ||
option('man', type : 'boolean', value : true, description : 'Generate and install man pages for CLI tool and services.') | ||
option('allow-site-packages-dir', type : 'boolean', value : false, description : 'Allow using Python\'s site-packages directory for Python modules instead of version independent location.') | ||
option('use-vendored-python-lxns', type : 'feature', value : 'disabled', description : 'Use meson subproject for python-lxns library.') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
# SPDX-FileCopyrightText: 2022 igo95862 | ||
if get_option('generate-namespaces-constants') | ||
subdir('namespaces_constants') | ||
endif | ||
subdir('bubblejail') | ||
|
||
python_package_env.set('PYTHONPATH', meson.current_source_dir()) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Submodule python-lxns
added at
80d845
Oops, something went wrong.