I'm trying to package 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
- because I'm calling
build
with --no-isolation
I'm using during all processes only locally installed modules
Here is output of the build:
+ /usr/bin/python3 -sBm build -w --no-isolation
* Getting dependencies for wheel...
setup.py:38: 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.
cmdclass = create_cmdclass('jsdeps', data_files_spec=data_files_spec)
setup.py:40: DeprecatedWarning: install_npm is deprecated as of 0.8 and will be removed in 1.0. Use `npm_builder` and `wrap_installers`
install_npm(js_dir, npm=["yarn"], build_cmd='build:extensions'), ensure_targets(jstargets),
running egg_info
creating ipyleaflet.egg-info
writing manifest file 'ipyleaflet.egg-info/SOURCES.txt'
warning: no files found matching '*.*' under directory 'ipyleaflet/nbextension'
warning: no files found matching '*.*' under directory 'ipyleaflet/labextension'
writing manifest file 'ipyleaflet.egg-info/SOURCES.txt'
* Building wheel...
setup.py:38: 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.
cmdclass = create_cmdclass('jsdeps', data_files_spec=data_files_spec)
setup.py:40: DeprecatedWarning: install_npm is deprecated as of 0.8 and will be removed in 1.0. Use `npm_builder` and `wrap_installers`
install_npm(js_dir, npm=["yarn"], build_cmd='build:extensions'), ensure_targets(jstargets),
running bdist_wheel
running jsdeps
yarn not found, ignoring yarn.lock file
`yarn` unavailable. If you're running this command using sudo, make sure `yarn` is available to sudo
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/pep517/in_process/_in_process.py", line 363, in <module>
main()
File "/usr/lib/python3.8/site-packages/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/lib/python3.8/site-packages/pep517/in_process/_in_process.py", line 261, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "/usr/lib/python3.8/site-packages/setuptools/build_meta.py", line 230, in build_wheel
return self._build_with_temp_dir(['bdist_wheel'], '.whl',
File "/usr/lib/python3.8/site-packages/setuptools/build_meta.py", line 215, in _build_with_temp_dir
self.run_setup()
File "/usr/lib/python3.8/site-packages/setuptools/build_meta.py", line 158, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 83, in <module>
setup(**setup_args)
File "/usr/lib/python3.8/site-packages/setuptools/__init__.py", line 155, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 148, in setup
return run_commands(dist)
File "/usr/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 163, in run_commands
dist.run_commands()
File "/usr/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/usr/lib/python3.8/site-packages/jupyter_packaging/setupbase.py", line 640, in run
[self.run_command(cmd) for cmd in cmds]
File "/usr/lib/python3.8/site-packages/jupyter_packaging/setupbase.py", line 640, in <listcomp>
[self.run_command(cmd) for cmd in cmds]
File "/usr/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/usr/lib/python3.8/site-packages/jupyter_packaging/setupbase.py", line 390, in run
self.command.run()
File "/usr/lib/python3.8/site-packages/jupyter_packaging/setupbase.py", line 321, in run
c.run()
File "/usr/lib/python3.8/site-packages/jupyter_packaging/setupbase.py", line 409, in run
raise ValueError(('missing files: %s' % missing))
ValueError: missing files: ['ipyleaflet/nbextension/index.js', 'ipyleaflet/labextension/package.json']
ERROR Backend subproccess exited when trying to invoke build_wheel