diff options
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 43 |
1 files changed, 0 insertions, 43 deletions
@@ -83,47 +83,6 @@ def assert_bwrap(): exit_bwrap("Bubblewrap too old") -################################################################## -# OSTree version requirements -################################################################## -REQUIRED_OSTREE_YEAR = 2017 -REQUIRED_OSTREE_RELEASE = 8 - - -def exit_ostree(reason): - print(reason + - "\nBuildStream requires OSTree >= v{}.{} with Python bindings. " - .format(REQUIRED_OSTREE_YEAR, REQUIRED_OSTREE_RELEASE) + - "Install it using your package manager (usually ostree or gir1.2-ostree-1.0).") - sys.exit(1) - - -def assert_ostree_version(): - platform = os.environ.get('BST_FORCE_BACKEND', '') or sys.platform - if platform.startswith('linux'): - try: - import gi - except ImportError: - print("BuildStream requires PyGObject (aka PyGI). Install it using" - " your package manager (usually pygobject3 or python-gi).") - sys.exit(1) - - try: - gi.require_version('OSTree', '1.0') - from gi.repository import OSTree - except ValueError: - exit_ostree("OSTree not found") - - try: - if OSTree.YEAR_VERSION < REQUIRED_OSTREE_YEAR or \ - (OSTree.YEAR_VERSION == REQUIRED_OSTREE_YEAR and - OSTree.RELEASE_VERSION < REQUIRED_OSTREE_RELEASE): - exit_ostree("OSTree v{}.{} is too old." - .format(OSTree.YEAR_VERSION, OSTree.RELEASE_VERSION)) - except AttributeError: - exit_ostree("OSTree is too old.") - - ########################################### # List the pre-built man pages to install # ########################################### @@ -155,14 +114,12 @@ def list_man_pages(): # So screw it, lets just use an env var. bst_install_entry_points = { 'console_scripts': [ - 'bst-artifact-receive = buildstream._artifactcache.pushreceive:receive_main', 'bst-artifact-server = buildstream._artifactcache.casserver:server_main' ], } if not os.environ.get('BST_ARTIFACTS_ONLY', ''): assert_bwrap() - assert_ostree_version() bst_install_entry_points['console_scripts'] += [ 'bst = buildstream._frontend:cli' ] |