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

modules/python: fix debug support for Python3 on Windows #6129

Closed
wants to merge 1 commit into from

Conversation

havardgraff
Copy link
Contributor

No description provided.

@@ -53,6 +53,7 @@ def __init__(self, python_holder, environment, kwargs):
self.variables = python_holder.variables
self.paths = python_holder.paths
self.link_libpython = python_holder.link_libpython
self.is_debug = environment.coredata.get_builtin_option('buildtype') == 'debug'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can reuse python_holder.is_debug here

self.variables = info['variables']
self.paths = info['paths']
install_paths = info['install_paths']
self.platlib_install_path = os.path.join(prefix, install_paths['platlib'][1:])
self.purelib_install_path = os.path.join(prefix, install_paths['purelib'][1:])
self.version = info['version']
if mesonlib.version_compare(self.version, '>= 3.0'):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that means PythonDependency can now use self.major_version = python_holder.major_version, slightly less duplication :)

@tristan957
Copy link
Member

Closing in favor of #11745

@tristan957 tristan957 closed this Aug 7, 2023
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.

4 participants