I cannot ask our repo users to install the whole visual++ which is a pain to install and failed 99% of the time.
and if it's only for one small python package it's worse. so how to avoid pkuseg to search for visual++?
thanks
Collecting pkuseg
Using cached pkuseg-0.0.25.tar.gz (48.8 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: cython in e:\z______mydata\dev\python\ebook2audiobook\python_env\lib\site-packages (from pkuseg) (3.1.2)
Requirement already satisfied: numpy>=1.16.0 in e:\z______mydata\dev\python\ebook2audiobook\python_env\lib\site-packages (from pkuseg) (1.26.4)
Building wheels for collected packages: pkuseg
DEPRECATION: Building 'pkuseg' using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the --use-pep517 option, (possibly combined with --no-build-isolation), or adding a pyproject.toml file to the source tree of 'pkuseg'. Discussion can be found at pypa/pip#6334
Building wheel for pkuseg (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [60 lines of output]
E:\Z______MYDATA\DEV\PYTHON\ebook2audiobook\python_env\Lib\site-packages\setuptools_init_.py:92: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
By 2025-Oct-31, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
E:\Z______MYDATA\DEV\PYTHON\ebook2audiobook\python_env\Lib\site-packages\setuptools\dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: Other/Proprietary License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
running bdist_wheel
running build
running build_py
creating build\lib.win-amd64-cpython-312\pkuseg
copying pkuseg\config.py -> build\lib.win-amd64-cpython-312\pkuseg
copying pkuseg\data.py -> build\lib.win-amd64-cpython-312\pkuseg
copying pkuseg\download.py -> build\lib.win-amd64-cpython-312\pkuseg
copying pkuseg\gradient.py -> build\lib.win-amd64-cpython-312\pkuseg
copying pkuseg\model.py -> build\lib.win-amd64-cpython-312\pkuseg
copying pkuseg\optimizer.py -> build\lib.win-amd64-cpython-312\pkuseg
copying pkuseg\res_summarize.py -> build\lib.win-amd64-cpython-312\pkuseg
copying pkuseg\scorer.py -> build\lib.win-amd64-cpython-312\pkuseg
copying pkuseg\trainer.py -> build\lib.win-amd64-cpython-312\pkuseg
copying pkuseg\__init__.py -> build\lib.win-amd64-cpython-312\pkuseg
creating build\lib.win-amd64-cpython-312\pkuseg\dicts
copying pkuseg\dicts\__init__.py -> build\lib.win-amd64-cpython-312\pkuseg\dicts
creating build\lib.win-amd64-cpython-312\pkuseg\models
copying pkuseg\models\__init__.py -> build\lib.win-amd64-cpython-312\pkuseg\models
creating build\lib.win-amd64-cpython-312\pkuseg\postag
copying pkuseg\postag\model.py -> build\lib.win-amd64-cpython-312\pkuseg\postag
copying pkuseg\postag\__init__.py -> build\lib.win-amd64-cpython-312\pkuseg\postag
creating build\lib.win-amd64-cpython-312\pkuseg\models\default
copying pkuseg\models\default\__init__.py -> build\lib.win-amd64-cpython-312\pkuseg\models\default
copying pkuseg\feature_extractor.pyx -> build\lib.win-amd64-cpython-312\pkuseg
copying pkuseg\inference.pyx -> build\lib.win-amd64-cpython-312\pkuseg
copying pkuseg\dicts\default.pkl -> build\lib.win-amd64-cpython-312\pkuseg\dicts
copying pkuseg\postag\feature_extractor.pyx -> build\lib.win-amd64-cpython-312\pkuseg\postag
copying pkuseg\models\default\features.pkl -> build\lib.win-amd64-cpython-312\pkuseg\models\default
copying pkuseg\models\default\weights.npz -> build\lib.win-amd64-cpython-312\pkuseg\models\default
running build_ext
Compiling pkuseg/inference.pyx because it changed.
[1/1] Cythonizing pkuseg/inference.pyx
building 'pkuseg.inference' 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 pkuseg
Running setup.py clean for pkuseg
Failed to build pkuseg
error: failed-wheel-build-for-install
× Failed to build installable wheels for some pyproject.toml based projects
╰─> pkuseg
I cannot ask our repo users to install the whole visual++ which is a pain to install and failed 99% of the time.
and if it's only for one small python package it's worse. so how to avoid pkuseg to search for visual++?
thanks
Collecting pkuseg
Using cached pkuseg-0.0.25.tar.gz (48.8 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: cython in e:\z______mydata\dev\python\ebook2audiobook\python_env\lib\site-packages (from pkuseg) (3.1.2)
Requirement already satisfied: numpy>=1.16.0 in e:\z______mydata\dev\python\ebook2audiobook\python_env\lib\site-packages (from pkuseg) (1.26.4)
Building wheels for collected packages: pkuseg
DEPRECATION: Building 'pkuseg' using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the
--use-pep517option, (possibly combined with--no-build-isolation), or adding apyproject.tomlfile to the source tree of 'pkuseg'. Discussion can be found at pypa/pip#6334Building wheel for pkuseg (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [60 lines of output]
E:\Z______MYDATA\DEV\PYTHON\ebook2audiobook\python_env\Lib\site-packages\setuptools_init_.py:92: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pkuseg
Running setup.py clean for pkuseg
Failed to build pkuseg
error: failed-wheel-build-for-install
× Failed to build installable wheels for some pyproject.toml based projects
╰─> pkuseg