Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests are installed into Python site-packages #1478

Closed
aknoerig opened this issue Jan 20, 2025 · 1 comment · Fixed by #1486
Closed

tests are installed into Python site-packages #1478

aknoerig opened this issue Jan 20, 2025 · 1 comment · Fixed by #1486
Labels
bug Something isn't working build

Comments

@aknoerig
Copy link

aknoerig commented Jan 20, 2025

After installing bitsandbytes, all of a sudden my own test imports (from tests import ...) started failing due to a naming confllict.

Turns out the bitsandbytes/tests folder accidentally gets installed into the root of my Python site-packages! Along with all the other package main folders, there's now a tests folder containing the bitsandbytes tests.

System Info

Ubuntu / conda 24.11.3 / pip 23.3.2

Reproduction

  1. pip install bitsandbytes
  2. you'll find the folder python3.10/site-packages/tests with the contents of bitsandbytes/tests

Tested for Python 3.10 with bitsandbytes 0.45.0 and 0.44.1

Expected behavior

The tests shouldn't be installed/copied at all during pip installation.

@matthewdouglas matthewdouglas added bug Something isn't working build labels Jan 22, 2025
@matthewdouglas
Copy link
Member

Thanks for the report! We definitely don't want the tests included in our wheels, so we'll have that taken care of soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants