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

get_stdlib_dir(): Don't select python3.1 symlink; select python3.10 #4479

Merged
merged 1 commit into from
Jun 16, 2022

Conversation

@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label May 24, 2022
@beeankha beeankha requested a review from a team May 26, 2022 14:34
conda_build/utils.py Outdated Show resolved Hide resolved
news/fix-sp_dir.rst Outdated Show resolved Hide resolved
@stuarteberg stuarteberg force-pushed the fix-sp_dir branch 2 times, most recently from 3e084f3 to 6f5a4c9 Compare June 15, 2022 03:04
@stuarteberg
Copy link
Contributor Author

@kenodegard Thanks for the review. I've implemented your suggestion to filter out symlinks before selecting the directory.

Copy link
Contributor

@kenodegard kenodegard left a comment

Choose a reason for hiding this comment

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

Hehe, I was torn between my suggestion and importing itertools.filterfalse. Thanks for choosing the cleaner option!

@jakirkham
Copy link
Member

cc @isuruf (for awareness)

@@ -1008,6 +1009,7 @@ def get_stdlib_dir(prefix, py_ver):
else:
lib_dir = os.path.join(prefix, 'lib')
python_folder = glob(os.path.join(lib_dir, 'python?.*'))
python_folder = sorted(filterfalse(islink, python_folder))
Copy link
Member

Choose a reason for hiding this comment

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

Loving this!

@jezdez jezdez merged commit 32c6226 into conda:master Jun 16, 2022
@github-actions github-actions bot added the locked [bot] locked due to inactivity label Jun 17, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla-signed [bot] added once the contributor has signed the CLA locked [bot] locked due to inactivity
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

When building with Python 3.10, SP_DIR says 3.1
5 participants