Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.9.3] problem observe during the Debian packaging #1083

Open
picca opened this issue Aug 5, 2024 · 6 comments
Open

[5.9.3] problem observe during the Debian packaging #1083

picca opened this issue Aug 5, 2024 · 6 comments

Comments

@picca
Copy link

picca commented Aug 5, 2024

Hello Armando.

here my remarks for htis version of PyMca :))

thanks a lot

  • When building the doc
building [html]: targets for 25 source files that are out of date
updating environment: [new config] 25 added, 0 changed, 0 removed
reading sources... [  4%] changelog
reading sources... [  8%] customization/index
reading sources... [ 12%] customization/plugins/index
reading sources... [ 16%] customization/plugins/plugins1d
reading sources... [ 20%] customization/plugins/stackplugins
WARNING: don't know which module to import for autodocumenting 'MENU_TEXT' (try placing a "module" or "currentmodule" directive in the document, or giving an explicit module name)
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pymca5/build/PyMca5/PyMcaPlugins/AdvancedAlignmentScanPlugin.py:docstring of PyMca5.PyMcaPlugins.AdvancedAlignmentScanPlugin:32: WARNING: Inline emphasis start-string without end-string.
WARNING: don't know which module to import for autodocumenting 'MENU_TEXT' (try placing a "module" or "currentmodule" directive in the document, or giving an explicit module name)

it stops the compilation of the doc

  • When installing
# pymca-data
python3 setup.py install_data --root debian/pymca-data/
/usr/lib/python3/dist-packages/setuptools/__init__.py:80: _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`.
        ********************************************************************************

!!
  dist.fetch_build_eggs(dist.setup_requires)
PyMca X-Ray Fluorescence Toolkit 5.9.3

GUI requirements requested by environment
running install_data
/<<PKGBUILDDIR>>/setup.py:686: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  dftinstall.initialize_options(self)
********************************

No permission to write man pages

********************************

At some point getting rid of the setup.py will become mandatory

@vasole
Copy link
Owner

vasole commented Aug 5, 2024

At some point getting rid of the setup.py will become mandatory

I am not using it. PyMca should build fine with python -m build

I guess Debian needs it in order to split the package into data, documentation and so on, but PyMca does not use setuptools.

@picca
Copy link
Author

picca commented Aug 5, 2024 via email

@picca
Copy link
Author

picca commented Aug 5, 2024 via email

@vasole
Copy link
Owner

vasole commented Aug 5, 2024

yes you are using setuptools ;), I will try to build only from this and see what is going one.

Ok. I do not think you can avoid it for the time being then. I thought i was not using setuptools because python 3.12 was explicitly preventing the call to setup.py. I do not think you can avoid using setup.py then (for the time being).

I have checked matplotlib, and they still have setuptools in pyproject.toml

https://github.com/matplotlib/matplotlib/blob/main/pyproject.toml

@picca
Copy link
Author

picca commented Aug 5, 2024 via email

@vasole
Copy link
Owner

vasole commented Aug 9, 2024

The doc should compile now.

I have been able to reproduce the warning and correct it in #1084 with a recent sphinx. I have used the command below to generate the documentation:

sphinx-build ./doc/source ./dist/doc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants