rattler-build icon indicating copy to clipboard operation
rattler-build copied to clipboard

Implement the `use_python_app_entrypoint`

Open wolfv opened this issue 1 year ago • 1 comments

Was osx_is_app in conda-build

This is a seldomly used option that changes the shebang to python.app instead of python on macOS .

I am not sure what it does exactly, but conda-forge uses it in a few places: https://github.com/search?q=org%3Aconda-forge+osx_is_app+language%3AYAML&type=code

build:
  python:
    # Specifies if python.app should be used as the entrypoint on macOS
    # was `osx_is_app`
    use_python_app_entrypoint: bool (defaults to false)  # macOS only!

wolfv avatar Jan 22 '24 07:01 wolfv

This also adds a requirement into the run dependencies (python.app) which can be found here;

https://github.com/conda-forge/python.app-feedstock/blob/main/recipe/meta.yaml

From conda-build:

    def append_requirements(self):
        """For dynamic determination of build or run reqs, based on configuration"""
        run_reqs = self.meta.setdefault("requirements", {}).setdefault("run", [])
        if (
            self.get_value("build/osx_is_app", False)
            and self.config.platform == "osx"
            and "python.app" not in run_reqs
        ):
            run_reqs.append("python.app")

wolfv avatar Jan 27 '24 10:01 wolfv