conda-forge / cross-python-feedstock

A conda-smithy repository for cross-python.
BSD 3-Clause "New" or "Revised" License
4 stars 15 forks source link

Add build prefix's lib-dynload directory to PYTHONPATH #57

Closed chrisburr closed 2 years ago

chrisburr commented 2 years ago

I think this fixes the issue seen in https://github.com/conda-forge/crossenv-feedstock/pull/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
conda-forge-linter commented 2 years ago

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 commented 2 years ago

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