Point72 / Point72/csp

pip installation of csp pulls in source files at top-level of environment

Open
#526 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

part: distribution type: bug
Dominant language
Python
Stars
441
Forks
90
Avg merge
1d 12m
Merged PRs (30d)
5

Description

Describe the bug

When you pip install csp, source files are being installed at the top-level of the user's environment. This clutters the environment and can cause potential issues with other packages.

To Reproduce

micromamba create -n csp-install-bug python=3.11
micromamba activate csp-install-bug
(csp-install-bug) pip install csp
(csp-install-bug) cd $CONDA_PREFIX; ls

bin              conda-meta  fonts    libexec  NOTICE          README.md  share  vcpkg.json
CMakeLists.txt   cpp         include  LICENSE  __pycache__     sbin       ssl    x86_64-conda_cos6-linux-gnu
compiler_compat  etc         lib      man      pyproject.toml  setup.py   var    x86_64-conda-linux-gnu

(csp-install-bug) cat pyproject.toml

...
[project]
name = "csp"
...

Expected behavior

The files should not be installed when you pip install csp.

Error Message

Runtime Environment

Additional context

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the installation in a clean micromamba environment, then inspect pyproject.toml and setup.py to see why source files are copied into the environment root. Compare the installed tree with the expected package contents and verify that pip install csp no longer places top-level files there.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.