Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support running Meson as a Python zip application #823

Merged
merged 1 commit into from
Sep 28, 2016
Merged

Support running Meson as a Python zip application #823

merged 1 commit into from
Sep 28, 2016

Conversation

fernzi
Copy link
Contributor

@fernzi fernzi commented Sep 26, 2016

This allows Meson to be packaged as a zip archive which can be directly executed by Python (see zipapp). Creating these archives can be done with Python itself since 3.5:

# With 'meson-build' being a git clone
python3 -m zipapp -p '/usr/bin/env python3' -m meson:main -o meson meson-build

The resulting archive can be executed like a script: python3 meson, or run directly as ./meson.

I believe this is related to #588.

@jpakkane
Copy link
Member

Looks good, thanks.

@jpakkane jpakkane merged commit ac41a45 into mesonbuild:master Sep 28, 2016
@fernzi fernzi deleted the zipapp branch September 28, 2016 18:22
jpakkane added a commit that referenced this pull request Oct 2, 2016
@jpakkane
Copy link
Member

jpakkane commented Oct 2, 2016

This caused problems so it probably needs to be reverted, sorry. See #830 for details. A patch to fix this would probably need to do both this and argv[0] fixes in one commit.

jpakkane added a commit that referenced this pull request Oct 2, 2016
@fernzi
Copy link
Contributor Author

fernzi commented Oct 2, 2016

I'll have another go at this after the next release, or after #847 gets merged.

@ignatenkobrain
Copy link
Member

@franz-mokka feel free to start working on this ;) Would be nice feature for next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants