Skip to content

Installation issue: py-poetry-core #32375

@skosukhin

Description

@skosukhin

Steps to reproduce the issue:

$ git config --global core.excludesfile "$HOME/.gitignore"
$ echo '/whatever' >> "$HOME/.gitignore"
$ git clone https://github.com/spack/spack.git
$ cd spack
$ export SPACK_USER_CACHE_PATH="$(pwd)/whatever"
$ . share/spack/setup-env.sh
$ spack config --scope=site add "config:build_stage:[$(pwd)/whatever]"
$ spack build-env py-poetry-core -- python3 -c 'import poetry'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'poetry'

Spack "thinks" that py-poetry-core is installed successfully but it's not because all relevant files from the poetry directory are missing. This happens because the stage directory is gitignored and, therefore, ignored during the installation (see here).

Note that removing the pyproject.toml triggers the installation using setup.py (not present in the repo but is shipped with the tarball), which produces the correct result.

@adamjstewart it turns out that the problem has nothing to do with the length of the build directory prefix.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions