Closed Stannislav closed 3 years ago
Cython and NumPy need to be manually installed before running setup.py.
setup.py
sent2vec cannot be included in other packages' dependencies because the installation will break if cython or numpy are not installed.
sent2vec
cython
numpy
Include a pyproject.toml file, which makes sure that Cython and NumPy are installed before the setup script is executed.
pyproject.toml
This is the officially recommended way of distributing Cython modules [1] and is supported by pip starting version 10.0. [2]
If Cython and NumPy are not required after the install then the install_requires line in setup.py can be removed.
Cython
NumPy
install_requires
Any chance that this will be accepted soon? Has been open for many months and seems like a simple and small change that is really useful.
Problem
Cython and NumPy need to be manually installed before running
setup.py
.Consequence
sent2vec
cannot be included in other packages' dependencies because the installation will break ifcython
ornumpy
are not installed.Solution
Include a
pyproject.toml
file, which makes sure that Cython and NumPy are installed before the setup script is executed.This is the officially recommended way of distributing Cython modules [1] and is supported by pip starting version 10.0. [2]
Note
If
Cython
andNumPy
are not required after the install then theinstall_requires
line insetup.py
can be removed.