Skip to content

BUG: Installing pandas places pyproject.toml in site-packages #52141

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

Closed
3 tasks done
shughes-uk opened this issue Mar 23, 2023 · 3 comments · Fixed by #52154
Closed
3 tasks done

BUG: Installing pandas places pyproject.toml in site-packages #52141

shughes-uk opened this issue Mar 23, 2023 · 3 comments · Fixed by #52154
Assignees
Labels
Bug Needs Triage Issue that has not been reviewed by a pandas team member

Comments

@shughes-uk
Copy link

shughes-uk commented Mar 23, 2023

Pandas version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • I have confirmed this bug exists on the main branch of pandas.

Reproducible Example

pip install --upgrade --pre --extra-index https://pypi.anaconda.org/scipy-wheels-nightly/simple pandas

Issue Description

I noticed the root of my site-packages folder had a rogue pyproject.toml in it from pandas. Not sure if this is a issue with the wheel build or something but it's definitely not designed behavior. I'm not sure if this just an issue with the nightly or not.

Removing it and re-running the install resulted in the same behavior.

pip 23.0.1

Expected Behavior

No pyproject.toml should be placed in the root of site-packages

Installed Versions

INSTALLED VERSIONS

commit : 3083ae9
python : 3.9.16.final.0
python-bits : 64
OS : Darwin
OS-release : 22.3.0
Version : Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:37 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6000
machine : arm64
processor : arm
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8

pandas : 2.1.0.dev0+289.g3083ae932e
numpy : 1.25.0.dev0+941.gb35aac2c3
pytz : 2022.7.1
dateutil : 2.8.2
setuptools : 67.6.0
pip : 23.0.1
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : 1.1
pymysql : None
psycopg2 : None
jinja2 : 3.1.2
IPython : 8.11.0
pandas_datareader: None
bs4 : 4.11.2
bottleneck : None
brotli :
fastparquet : None
fsspec : 2023.3.0
gcsfs : None
matplotlib : None
numba : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyreadstat : None
pyxlsb : None
s3fs : None
scipy : None
snappy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
zstandard : None
tzdata : 2022.7
qtpy : None
pyqt5 : None

@shughes-uk shughes-uk added Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Mar 23, 2023
@mroeschke
Copy link
Member

This was added in #50330 because pd.test needs the pytest markers defined in pyproject.toml to work fully.

@shughes-uk
Copy link
Author

shughes-uk commented Mar 23, 2023

Putting it in site-packages is not the place to put it as there's a risk of it colliding with other packages or causing weird issues , site-packages/pandas would be ok I think?

If this was the behavior only for the nightly package that might also be ok

@mroeschke
Copy link
Member

cc @lithomas1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Needs Triage Issue that has not been reviewed by a pandas team member
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants