epfml / sent2vec

General purpose unsupervised sentence representations
Other
1.19k stars 256 forks source link

Install Cython and NumPy before executing setup.py #103

Closed Stannislav closed 3 years ago

Stannislav commented 4 years ago

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 if cython or numpy 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 and NumPy are not required after the install then the install_requires line in setup.py can be removed.

dyyd commented 4 years ago

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.