Open graingert opened 5 years ago
@felixonmars is the new pypi maintainer and mentioned making manylinux wheels in #18.
Does wheel for Python3.12 for windows will be available? Because I am unable to compile it in Windows 11 with BuildTools 2019 (v14) nor BuildTools 2022 (v17), each time pip make it look like it doesn't find the compiler :(
(venv312) PS D:\Sources\Python\MyProject> pip install pystemmer
Collecting pystemmer
Using cached PyStemmer-2.2.0.1.tar.gz (303 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pystemmer
Building wheel for pystemmer (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pystemmer (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
running bdist_wheel
running build
running build_ext
cythoning src/Stemmer.pyx to src\Stemmer.c
C:\Users\user\AppData\Local\Temp\pip-build-env-m59nzlff\normal\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\user\AppData\Local\Temp\pip-install-w1adedmt\pystemmer_3d15ba795a02416f82c2b4e2315c0d69\src\Stemmer.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
building 'Stemmer' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pystemmer
Failed to build pystemmer
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pystemmer)
(venv312) PS D:\Sources\Python\MyProject>
another try:
(venv312) PS D:\Sources\Python\MyProject> pip install git+https://github.com/snowballstem/pystemmer
Collecting git+https://github.com/snowballstem/pystemmer
Cloning https://github.com/snowballstem/pystemmer to c:\users\user\appdata\local\temp\pip-req-build-4rojsdob
Running command git clone --filter=blob:none --quiet https://github.com/snowballstem/pystemmer 'C:\Users\user\AppData\Local\Temp\pip-req-build-4rojsdob'
Resolved https://github.com/snowballstem/pystemmer to commit cbe740d525d01ae668ad59354aa75eff2b325f4e
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: PyStemmer
Building wheel for PyStemmer (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for PyStemmer (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [9 lines of output]
running bdist_wheel
running build
running build_ext
C:\Users\user\AppData\Local\Temp\pip-build-env-trmxu8o5\normal\Lib\site-packages\Cython\Compiler\Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: C:\Users\user\AppData\Local\Temp\pip-req-build-4rojsdob\src\Stemmer.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
Compiling src/Stemmer.pyx because it changed.
[1/1] Cythonizing src/Stemmer.pyx
building 'Stemmer' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for PyStemmer
Failed to build PyStemmer
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (PyStemmer)
(venv312) PS D:\Sources\Python\MyProject>
This is a volunteer project - we'll provide wheels if/when someone steps up to contributing them and maintaining them.
Your build problem sounds worth solving anyway (also it would presumably be hard to build wheels with MSVC if we fail to detect it). It's not a development platform I use, but did you run the "vcvars" script to set up PATH
and other environment variables?
https://learn.microsoft.com/en-us/cpp/build/building-on-the-command-line
I have found a solution (somewhat): Install the full blown Visual Studio 2022 and not just the Build Tools like recommended :/
We don't currently really have a PyPI maintainer - this isn't going to happen until we do I'm afraid.