Skip to content

setup.py broke again #19

@MatthewRHermes

Description

@MatthewRHermes

See the thread in PR #18. I do not think the CI failures there have anything to do with the PR itself.

Experimentation suggests that the dependencies indicated by setup.py are, for some reason, now placed in a location that the sys.path inside of setup.py cannot see:

Requirement already satisfied: pyscf in /opt/hostedtoolcache/Python/3.7.16/x64/lib/python3.7/site-packages (from pyscf-forge==1.0.0) (2.2.1)
Requirement already satisfied: numpy in /opt/hostedtoolcache/Python/3.7.16/x64/lib/python3.7/site-packages (from pyscf-forge==1.0.0) (1.21.6)
Requirement already satisfied: scipy!=1.5.0,!=1.5.1 in /opt/hostedtoolcache/Python/3.7.16/x64/lib/python3.7/site-packages (from pyscf->pyscf-forge==1.0.0) (1.7.3)
Requirement already satisfied: h5py>=2.7 in /opt/hostedtoolcache/Python/3.7.16/x64/lib/python3.7/site-packages (from pyscf->pyscf-forge==1.0.0) (3.8.0)

whereas print (sys.path) inside of setup.py:CMakeBuildExt.build_cmake produces:

['/home/runner/work/pyscf-forge/pyscf-forge', '/opt/hostedtoolcache/Python/3.7.16/x64/lib/python3.7/site-packages/pip/_vendor/pyproject_hooks/_in_process', '/tmp/pip-build-env-ofuuo5v2/site', '/opt/hostedtoolcache/Python/3.7.16/x64/lib/python37.zip', '/opt/hostedtoolcache/Python/3.7.16/x64/lib/python3.7', '/opt/hostedtoolcache/Python/3.7.16/x64/lib/python3.7/lib-dynload', '/tmp/pip-build-env-ofuuo5v2/overlay/lib/python3.7/site-packages', '/tmp/pip-build-env-ofuuo5v2/normal/lib/python3.7/site-packages']

I can maybe think of some horrible hodge-podge way to "fix" this in run_ci.sh, but really I would appreciate some help figuring out the "right" way to fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions