-
Notifications
You must be signed in to change notification settings - Fork 477
Open
Description
Describe the bug
Looks like pep517 based build fails.
To Reproduce
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
Expected behavior
Build should not fail.
Screenshots
Details
+ /usr/bin/python3 -sBm build -w --no-isolation
* Getting build dependencies for wheel...
<string>:50: DeprecatedWarning: install_npm is deprecated as of 0.8 and will be removed in 1.0. Use `npm_builder` and `wrap_installers`
<string>:55: DeprecatedWarning: create_cmdclass is deprecated as of 0.8 and will be removed in 1.0. "
Use `wrap_installers` to handle prebuild steps in cmdclass.
Use `get_data_files` to handle data files.
Use `include_package_data=True` and `MANIFEST.in` for package data.
/usr/lib/python3.8/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
!!
********************************************************************************
The license_file parameter is deprecated, use license_files instead.
This deprecation is overdue, please update your project and remove deprecated
calls to avoid build errors in the future.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
********************************************************************************
!!
parsed = self.parsers.get(option_name, lambda x: x)(value)
running egg_info
creating bqplot.egg-info
writing bqplot.egg-info/PKG-INFO
writing dependency_links to bqplot.egg-info/dependency_links.txt
writing requirements to bqplot.egg-info/requires.txt
writing top-level names to bqplot.egg-info/top_level.txt
writing manifest file 'bqplot.egg-info/SOURCES.txt'
reading manifest file 'bqplot.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching 'tests'
adding license file 'LICENSE'
writing manifest file 'bqplot.egg-info/SOURCES.txt'
* Building wheel...
<string>:50: DeprecatedWarning: install_npm is deprecated as of 0.8 and will be removed in 1.0. Use `npm_builder` and `wrap_installers`
<string>:55: DeprecatedWarning: create_cmdclass is deprecated as of 0.8 and will be removed in 1.0. "
Use `wrap_installers` to handle prebuild steps in cmdclass.
Use `get_data_files` to handle data files.
Use `include_package_data=True` and `MANIFEST.in` for package data.
/usr/lib/python3.8/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
!!
********************************************************************************
The license_file parameter is deprecated, use license_files instead.
This deprecation is overdue, please update your project and remove deprecated
calls to avoid build errors in the future.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
********************************************************************************
!!
parsed = self.parsers.get(option_name, lambda x: x)(value)
running bdist_wheel
running jsdeps
Installing build dependencies with npm. This may take a while...
> yarn install
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "@jupyter-widgets/base > @lumino/coreutils@1.12.1" has unmet peer dependency "crypto@1.0.1".
warning "@jupyterlab/builder > @jupyterlab/buildutils > verdaccio > clipanion@3.1.0" has unmet peer dependency "typanion@*".
warning " > less-loader@5.0.0" has incorrect peer dependency "webpack@^2.0.0 || ^3.0.0 || ^4.0.0".
warning " > webpack-cli@3.3.12" has incorrect peer dependency "webpack@4.x.x".
warning Workspaces can only be enabled in private projects.
warning Workspaces can only be enabled in private projects.
[4/4] Building fresh packages...
$ jlpm run build
Internal Error: bqplot@workspace:.: This package doesn't seem to be present in your lockfile; run "yarn install" to update the lockfile
at q0.getCandidates (/usr/lib/python3.8/site-packages/jupyterlab/staging/yarn.js:435:5145)
at xf.getCandidates (/usr/lib/python3.8/site-packages/jupyterlab/staging/yarn.js:391:1264)
at /usr/lib/python3.8/site-packages/jupyterlab/staging/yarn.js:439:7693
at ff (/usr/lib/python3.8/site-packages/jupyterlab/staging/yarn.js:390:11070)
at ge (/usr/lib/python3.8/site-packages/jupyterlab/staging/yarn.js:439:7673)
at async Promise.allSettled (index 0)
at async to (/usr/lib/python3.8/site-packages/jupyterlab/staging/yarn.js:390:10398)
at async /usr/lib/python3.8/site-packages/jupyterlab/staging/yarn.js:439:8205
at async ti.startProgressPromise (/usr/lib/python3.8/site-packages/jupyterlab/staging/yarn.js:390:47579)
at async je.resolveEverything (/usr/lib/python3.8/site-packages/jupyterlab/staging/yarn.js:439:6233)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/usr/lib/python3.8/site-packages/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/lib/python3.8/site-packages/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "/usr/lib/python3.8/site-packages/setuptools/build_meta.py", line 434, in build_wheel
return self._build_with_temp_dir(
File "/usr/lib/python3.8/site-packages/setuptools/build_meta.py", line 419, in _build_with_temp_dir
self.run_setup()
File "/usr/lib/python3.8/site-packages/setuptools/build_meta.py", line 341, in run_setup
exec(code, locals())
File "<string>", line 62, in <module>
File "/usr/lib/python3.8/site-packages/setuptools/__init__.py", line 103, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/usr/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/usr/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.8/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/usr/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/usr/lib/python3.8/site-packages/jupyter_packaging/setupbase.py", line 726, in run
[self.run_command(cmd) for cmd in cmds]
File "/usr/lib/python3.8/site-packages/jupyter_packaging/setupbase.py", line 726, in <listcomp>
[self.run_command(cmd) for cmd in cmds]
File "/usr/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/usr/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/usr/lib/python3.8/site-packages/jupyter_packaging/setupbase.py", line 421, in run
self.command.run()
File "/usr/lib/python3.8/site-packages/jupyter_packaging/setupbase.py", line 345, in run
c.run()
File "/usr/lib/python3.8/site-packages/jupyter_packaging/setupbase.py", line 695, in run
builder()
File "/usr/lib/python3.8/site-packages/jupyter_packaging/setupbase.py", line 231, in builder
run(npm_cmd + ["install"], cwd=node_package)
File "/usr/lib/python3.8/site-packages/jupyter_packaging/setupbase.py", line 297, in run
return subprocess.check_call(cmd, **kwargs)
File "/usr/lib64/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/yarn', 'install']' returned non-zero exit status 1.
ERROR Backend subprocess exited when trying to invoke build_wheelAdditional context
In above output is possible to see as well some setuptoos related warnings.
Here is set of modules installed in build env:
Details
Package Version
----------------------------- --------
alabaster 0.7.13
anyio 4.0.0
argon2-cffi 23.1.0
argon2-cffi-bindings 21.2.0
arrow 1.3.0
asttokens 2.4.1
async-lru 2.0.4
attrs 23.1.0
Babel 2.13.1
backcall 0.2.0
beautifulsoup4 4.12.2
bleach 6.1.0
build 1.0.3
cffi 1.16.0
charset-normalizer 3.3.2
comm 0.2.0
coverage 7.3.2
cppclean 0.13
debugpy 1.8.0
decorator 5.1.1
defusedxml 0.7.1
deprecation 2.1.0
distro 1.8.0
dnf 4.18.1
docutils 0.20.1
exceptiongroup 1.1.3
executing 2.0.1
fastjsonschema 2.18.0
fqdn 1.5.1
gpg 1.23.0
html5lib 1.1
idna 3.4
imagesize 1.4.1
importlib-metadata 6.8.0
importlib-resources 6.1.1
iniconfig 2.0.0
installer 0.7.0
ipykernel 6.26.0
ipython 8.12.0
ipywidgets 8.0.3
isoduration 20.11.0
jedi 0.19.1
Jinja2 3.1.2
json5 0.9.14
jsonpointer 2.4
jsonschema 4.19.1
jsonschema-specifications 2023.7.1
jupyter_client 8.6.0
jupyter_core 5.5.0
jupyter-events 0.9.0
jupyter-lsp 2.2.0
jupyter_packaging 0.12.3
jupyter_server 2.10.1
jupyter_server_terminals 0.4.4
jupyter-sphinx 0.4.0
jupyterlab 4.0.9
jupyterlab-pygments 0.1.2
jupyterlab_server 2.25.2
jupyterlab-widgets 3.0.8
libdnf 0.72.0
MarkupSafe 2.1.3
matplotlib-inline 0.1.6
mistune 2.0.5
nbclient 0.9.0
nbconvert 7.11.0
nbformat 5.9.2
nbval 0.10.0
nest-asyncio 1.5.8
notebook_shim 0.2.3
numpy 1.24.4
overrides 7.4.0
packaging 23.2
pandas 2.0.3
pandocfilters 1.5.0
parso 0.8.3
pexpect 4.8.0
pickleshare 0.7.5
pkgutil_resolve_name 1.3.10
platformdirs 4.0.0
pluggy 1.3.0
ply 3.11
prometheus-client 0.18.0
prompt-toolkit 3.0.39
psutil 5.9.5
ptyprocess 0.7.0
pure-eval 0.2.2
pycparser 2.21
Pygments 2.17.0
pyproject_hooks 1.0.0
pytest 7.4.3
python-dateutil 2.8.2
python-json-logger 2.0.7
pytz 2023.3
PyYAML 6.0.1
pyzmq 25.1.1
referencing 0.30.2
requests 2.31.0
rfc3339-validator 0.1.4
rfc3986-validator 0.1.1
rpds-py 0.13.0
scikit-build 0.17.6
SciPy 1.8.1
Send2Trash 1.8.2
setuptools 69.0.0
six 1.16.0
sniffio 1.3.0
snowballstemmer 2.2.0
soupsieve 2.5
Sphinx 7.1.2
sphinx-rtd-theme 1.2.2
sphinx-thebe 0.3.0
sphinxcontrib-applehelp 1.0.4
sphinxcontrib-devhelp 1.0.5
sphinxcontrib-htmlhelp 2.0.4
sphinxcontrib-jquery 4.1
sphinxcontrib-jsmath 1.0.1
sphinxcontrib-qthelp 1.0.3
sphinxcontrib-serializinghtml 1.1.9
stack-data 0.6.3
terminado 0.18.0
tinycss2 1.2.1
tomli 2.0.1
tomlkit 0.12.3
tornado 6.3.3
traitlets 5.13.0
traittypes 0.2.1
typing_extensions 4.8.0
uri-template 1.2.0
urllib3 1.26.18
wcwidth 0.2.10
webcolors 1.13
webencodings 0.5.1
websocket-client 1.6.4
wheel 0.41.3
widgetsnbextension 4.0.9
zipp 3.17.0Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels