Pandas version checks
-
[X] I have checked that this issue has not already been reported.
-
[X] I have confirmed this bug exists on the latest version of pandas.
-
[X] I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
pip install --upgrade pip
pip install numpy cython
git clone https://github.com/pandas-dev/pandas.git
cd pandas
python setup.py install
Issue Description
Cannot install pandas from source.
Expected Behavior
To have the versioneer details in setup.cfg so it will install.
Installed Versions
Comment From: lithomas1
What version of setuptools are you on?
I think you need at least setuptools 61
Comment From: MarcoGorelli
you also need versioneer[toml]
installed
Comment From: MarcoGorelli
🤔 should the README still be recommending this actually? https://github.com/pandas-dev/pandas#installation-from-sources
Comment From: CAlexPac
I have setuptools installed. setuptools 65.5.1
Comment From: MarcoGorelli
I just tried this, and installing versioneer[toml]
fixes it
Comment From: lithomas1
I just tried this, and installing
versioneer[toml]
fixes it
Ah, makes sense. setuptools vendors their own tomli, so that's why it wouldn't be installed.
I feel like maybe pip install .
would fix this? versioneer[toml]
is already listed in the requires there.
IIRC, python setup.py install
is deprecated or something.
Comment From: CAlexPac
Yes, that fixed it.
pip install "versioneer[toml]"
pip install .
Thank you very much.