Coder Social home page Coder Social logo

Comments (5)

dmitry-shibanov avatar dmitry-shibanov commented on June 17, 2024 1

Hello everyone. I'm going to close the feature request because we do not provide macOS with older versions and we're not planing to build python against of 10.9.

from setup-python.

letmaik avatar letmaik commented on June 17, 2024

I can confirm that. A good reference of what viable deployment target versions should be can be seen from what's available from python.org: https://www.python.org/ftp/python/3.7.4/ There we have 10.6 and 10.9. Note for 3.5 there is only 10.5 and 10.6. It seems like the recommended approach is to use 10.6 for 3.5 and 10.9 for >3.5.
Due to this I'm currently forced to install Python manually in order to generate binary wheels that are widely compatible.
For reference, the deployment target can be influenced by setting the MACOSX_DEPLOYMENT_TARGET environment variable.

from setup-python.

letmaik avatar letmaik commented on June 17, 2024

Addition: I don't think SDK is strictly linked to deployment target. I was able to set MACOSX_DEPLOYMENT_TARGET=10.9 and together with the Python from python.org I could build 3.6 and 3.7 wheels which have the 10.9 platform tag. I'm not a macOS expert, so maybe someone else can make sense of that. Maybe a certain SDK supports multiple deployment targets (same and older up to some lower bound)?

from setup-python.

coldfix avatar coldfix commented on June 17, 2024

Note that while the situation remains as is, a workaround for users is to replace actions/setup-python by setting up conda environments, e.g.:

      - uses: goanpeca/setup-miniconda@v1
        with:
          architecture: x64
          python-version: '3.8'
          # must be explicitly specified if architecture is not x64:
          miniconda-version: latest

      - run: |
          conda create -qyf py35 python=3.5 wheel -c anaconda
          conda activate py35
          python setup.py sdist bdist_wheel
        shell: bash -l {0}

      - run: |
          conda create -qyf py36 python=3.6 wheel -c anaconda
          conda activate py36
          python setup.py sdist bdist_wheel
        shell: bash -l {0}

      ...

which will result in the following deployment targets:

  • py2.7: 10.7
  • py3.5: 10.6
  • py3.6: 10.9
  • py3.7: 10.9
  • py3.8: 10.9

from setup-python.

rdb avatar rdb commented on June 17, 2024

Why? This is a trivial change to make, and means setup-python will be useful to those who want to keep targeting 10.9.

The version of macOS (or the SDK) you provide is irrelevant to the deployment target you set when building Python.

from setup-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.