conda-forge / pypy3.6-feedstock

A conda-smithy repository for pypy3.6.
BSD 3-Clause "New" or "Revised" License
4 stars 13 forks source link

_sysconfigdata__*.py is not updated when the package is installed #86

Closed mattip closed 2 years ago

mattip commented 2 years ago

The package to download has a _sysconfigdata__*.py file that captures the state at build time. This should be overwritten with information when the package is installed. For instance, the x86_64 downloaded package has 'INCLUDEPY': '/home/conda/feedstock_root/build_artifacts/pypy3.8_1658434607149/work/pypy3/include/pypy3.8' which is wrong once the package is installed. The CPython packages also have bogus paths, but these are somehow rewritten. The invocation to do this is python -m sysconfig --generate-posix-vars Is that somehow run for CPython at installation but not for PyPy?

isuruf commented 2 years ago

We can try running that after installation.

mattip commented 2 years ago

How does a package ask conda to run something after installation?

isuruf commented 2 years ago

What I mean is in the build.sh script at the make install phase. The directory mentioned above is in SRC_DIR (working directory where the pypy source is located) and not the PREFIX (install directory where pypy was installed in the build machine) installed. conda knows how to replace paths containing PREFIX, but not SRC_DIR

mattip commented 2 years ago

thanks, I will try that out