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

Add options for Python with Precompiled stdlib and debug binaries #86

Open
simonsan opened this issue Apr 26, 2020 · 3 comments
Open

Add options for Python with Precompiled stdlib and debug binaries #86

simonsan opened this issue Apr 26, 2020 · 3 comments
Labels
feature request New feature or request to improve the current logic

Comments

@simonsan
Copy link

simonsan commented Apr 26, 2020

I wonder if it would be viable to give a parameter for advanced usages in this action. For example I need this exact setup as in the title.

LINK : fatal error LNK1104: cannot open file 'python38_d.lib'
We need a Python interpreter that is shipped with libpython and header files.

Since ever I need to download the Python setup and deinstall with it the same version from the CI just to install with the following command:

setup.exe /quiet Include_debug=1 Include_dev=1 Include_lib=1 Include_pip=1 PrependPath=1 CompileAll=1 InstallAllUsers=1 TargetDir=<workspace-dir>\Python38-x64-dbg\

Would be really cool to see such options here as well, so I (we?) can easily setup the Python installation for a build matrix for example.

cc: actions/runner-images#786
cc: #85
cc: actions/python-versions#16

dlech added a commit to dlech/python-versions that referenced this issue Aug 5, 2021
This adds the installer option to include the debug binaries (i.e. `python_d.exe`) on Windows.

Fixes actions/setup-python#86
@nikita-bykov nikita-bykov added the feature request New feature or request to improve the current logic label Dec 6, 2021
mmomtchev added a commit to mmomtchev/pymport that referenced this issue Nov 3, 2022
@mmomtchev
Copy link

I suggest everyone who has a choice try this workaround (from https://bugs.python.org/issue23393) because a debug build on Windows requires that all of your modules containing native code be built in debug mode too.

@mattip
Copy link

mattip commented Jun 15, 2023

xref capi-workgroup/problems#36 where interest was expressed by the CPython core developer team around making it easier to test c-extensions against debug versions of python, which would enable things like assert checks, and checks for improper use of the C-API.

@mattip
Copy link

mattip commented Jun 15, 2023

I think this would require:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request to improve the current logic
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants