8000 pip install fails when package_dir = {'':'src'} · Issue #274 · scikit-build/scikit-build · GitHub
[go: up one dir, main page]

Skip to content
pip install fails when package_dir = {'':'src'} #274
@benjaminjack

Description

@benjaminjack

I have a package structure that looks like this:

├─ src
│  └─ packagename
│     ├─ __init__.py
│     └─ ...
├─ tests
│  └─ ...
├─ CMakeLists.txt
└─ setup.py

My setup.py script looks like this:

setup(
    ...
    packages=find_packages('src'),
    package_dir={'': 'src'},
    ...
)

Running pip install . and pip install -e . fails with an error saying that directory 'package_name' cannot be found. Running the same commands with setuptools setup works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething's not working correctly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0