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 build prefix's lib-dynload directory to PYTHONPATH #57

Merged
merged 2 commits into from
Oct 25, 2022

Conversation

chrisburr
Copy link
Member

I think this fixes the issue seen in conda-forge/crossenv-feedstock#34.

The frozen site module is still causing differences, though I'm not sure if it's going to cause problems:

$ /home/cburr/miniconda3/conda-bld/pytest_1666698751133/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/bin/python3.11 -X frozen_modules=on -m site
sys.path = [
    '/home/cburr/miniconda3/conda-bld/pytest_1666698751133/work',
    '/home/cburr/miniconda3/conda-bld/pytest_1666698751133/_build_env/venv/lib',
    '/home/cburr/miniconda3/conda-bld/pytest_1666698751133/_build_env/venv/lib/python3.11/lib-dynload',
    '/home/cburr/miniconda3/conda-bld/pytest_1666698751133/_build_env/venv/lib/python3.11/site-packages',
    '/home/cburr/miniconda3/conda-bld/pytest_1666698751133/_build_env/lib/python3.11',
    '/home/cburr/miniconda3/conda-bld/pytest_1666698751133/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/lib/python311.zip',
    '/home/cburr/miniconda3/conda-bld/pytest_1666698751133/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/lib/python3.11',
    '/home/cburr/miniconda3/conda-bld/pytest_1666698751133/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/lib/python3.11/lib-dynload',
    '/home/cburr/miniconda3/conda-bld/pytest_1666698751133/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/lib/python3.11/site-packages',
]
USER_BASE: '/home/cburr/.local' (exists)
USER_SITE: '/home/cburr/.local/lib/python3.11/site-packages' (doesn't exist)
ENABLE_USER_SITE: False
$
$
$ /home/cburr/miniconda3/conda-bld/pytest_1666698751133/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/bin/python3.11 -X frozen_modules=off -m site
sys.path = [
    '/home/cburr/miniconda3/conda-bld/pytest_1666698751133/work',
    '/home/cburr/miniconda3/conda-bld/pytest_1666698751133/_build_env/venv/lib/python3.11/lib-dynload',
    '/home/cburr/miniconda3/conda-bld/pytest_1666698751133/_build_env/venv/lib/python3.11/site-packages',
    '/home/cburr/miniconda3/conda-bld/pytest_1666698751133/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/lib/python311.zip',
    '/home/cburr/miniconda3/conda-bld/pytest_1666698751133/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/lib/python3.11',
    '/home/cburr/miniconda3/conda-bld/pytest_1666698751133/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/lib/python3.11/lib-dynload',
    '/home/cburr/miniconda3/conda-bld/pytest_1666698751133/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/lib/python3.11/site-packages',
]
USER_BASE: '/home/cburr/.local' (exists)
USER_SITE: '/home/cburr/.local/lib/python3.11/site-packages' (doesn't exist)
ENABLE_USER_SITE: False

@chrisburr chrisburr requested a review from isuruf as a code owner October 25, 2022 14:06
@conda-forge-linter
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@chrisburr
Copy link
Member Author

I've built numpy with this and everything seems okay.

@chrisburr chrisburr merged commit f97c8fd into conda-forge:main Oct 25, 2022
@chrisburr chrisburr deleted the fix-python-3.11 branch October 25, 2022 15:41
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.

3 participants