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

book: Add setuptools installation #1534

Merged
merged 1 commit into from
Nov 3, 2023
Merged

book: Add setuptools installation #1534

merged 1 commit into from
Nov 3, 2023

Conversation

wroyca
Copy link
Contributor

@wroyca wroyca commented Nov 3, 2023

Starting with Python 3.10 and 3.11, distutils is formally marked as deprecated, but some dependencies that GTK4 relies upon still require it for compilation. Prompt users to install setuptools to mitigate this.

FAILED: subprojects/glib/gio/gdbus-daemon-generated.h subprojects/glib/gio/gdbus-daemon-generated.c
"C:\Users\wroy\AppData\Local\Programs\Python\Python312\python.exe" "subprojects/glib/gio/gdbus-2.0/codegen/gdbus-codegen" "--interface-prefix" "org." "--output-directory" "subprojects/glib/gio" "--generate-c-code" "gdbus-daemon-generated" "--c-namespace" "_G" "../subprojects/glib/gio/dbus-daemon.xml"
Traceback (most recent call last):
  File "C:\gtk\builddir\subprojects\glib\gio\gdbus-2.0\codegen\gdbus-codegen", line 53, in <module>
    from codegen import codegen_main
  File "C:\gtk\builddir\subprojects\glib\gio\gdbus-2.0\codegen\codegen_main.py", line 29, in <module>
    from . import dbustypes
  File "C:\gtk\builddir\subprojects\glib\gio\gdbus-2.0\codegen\dbustypes.py", line 22, in <module>
    from . import utils
  File "C:\gtk\builddir\subprojects\glib\gio\gdbus-2.0\codegen\utils.py", line 22, in <module>
    import distutils.version
ModuleNotFoundError: No module named 'distutils'
[455/4106] Generating subprojects/glib/gio/tests/gdbus-obj...anager-example/objectmanager-rst-gen with a custom command
FAILED: subprojects/glib/gio/tests/gdbus-object-manager-example/objectmanager-rst-gen-org.gtk.GDBus.Example.ObjectManager.Animal.rst subprojects/glib/gio/tests/gdbus-object-manager-example/objectmanager-rst-gen-org.gtk.GDBus.Example.ObjectManager.Cat.rst
"C:\Users\wroy\AppData\Local\Programs\Python\Python312\python.exe" "subprojects/glib/gio/gdbus-2.0/codegen/gdbus-codegen" "--interface-prefix" "org.gtk.GDBus.Example.ObjectManager." "--generate-rst" "objectmanager-rst-gen" "--output-directory" "subprojects/glib/gio/tests/gdbus-object-manager-example" "../subprojects/glib/gio/tests/gdbus-object-manager-example/gdbus-example-objectmanager.xml"
Traceback (most recent call last):
  File "C:\gtk\builddir\subprojects\glib\gio\gdbus-2.0\codegen\gdbus-codegen", line 53, in <module>
    from codegen import codegen_main
  File "C:\gtk\builddir\subprojects\glib\gio\gdbus-2.0\codegen\codegen_main.py", line 29, in <module>
    from . import dbustypes
  File "C:\gtk\builddir\subprojects\glib\gio\gdbus-2.0\codegen\dbustypes.py", line 22, in <module>
    from . import utils
  File "C:\gtk\builddir\subprojects\glib\gio\gdbus-2.0\codegen\utils.py", line 22, in <module>
    import distutils.version
ModuleNotFoundError: No module named 'distutils'
[456/4106] Generating subprojects/glib/gio/tests/gdbus-object-manager-example/objectmanager-gen with a custom command
FAILED: subprojects/glib/gio/tests/gdbus-object-manager-example/objectmanager-gen.h subprojects/glib/gio/tests/gdbus-object-manager-example/objectmanager-gen.c subprojects/glib/gio/tests/gdbus-object-manager-example/objectmanager-gen-org.gtk.GDBus.Example.ObjectManager.Animal.xml subprojects/glib/gio/tests/gdbus-object-manager-example/objectmanager-gen-org.gtk.GDBus.Example.ObjectManager.Cat.xml
"C:\Users\wroy\AppData\Local\Programs\Python\Python312\python.exe" "subprojects/glib/gio/gdbus-2.0/codegen/gdbus-codegen" "--interface-prefix" "org.gtk.GDBus.Example.ObjectManager." "--c-namespace" "Example" "--c-generate-object-manager" "--output-directory" "subprojects/glib/gio/tests/gdbus-object-manager-example" "--generate-c-code" "objectmanager-gen" "--generate-docbook" "objectmanager-gen" "--symbol-decorator" "GDBUS_OBJECT_MANAGER_EXAMPLE_AVAILABLE_IN_ALL" "--symbol-decorator-header" "gdbus-example-objectmanager-visibility.h" "../subprojects/glib/gio/tests/gdbus-object-manager-example/gdbus-example-objectmanager.xml"
Traceback (most recent call last):
  File "C:\gtk\builddir\subprojects\glib\gio\gdbus-2.0\codegen\gdbus-codegen", line 53, in <module>
    from codegen import codegen_main
  File "C:\gtk\builddir\subprojects\glib\gio\gdbus-2.0\codegen\codegen_main.py", line 29, in <module>
    from . import dbustypes
  File "C:\gtk\builddir\subprojects\glib\gio\gdbus-2.0\codegen\dbustypes.py", line 22, in <module>
    from . import utils
  File "C:\gtk\builddir\subprojects\glib\gio\gdbus-2.0\codegen\utils.py", line 22, in <module>
    import distutils.version
ModuleNotFoundError: No module named 'distutils'

https://peps.python.org/pep-0632/

Starting with Python 3.10 and 3.11, distutils is formally marked as deprecated.
@wroyca wroyca requested a review from Hofer-Julian as a code owner November 3, 2023 17:53
Copy link
Collaborator

@Hofer-Julian Hofer-Julian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@Hofer-Julian Hofer-Julian merged commit 6b6e492 into gtk-rs:master Nov 3, 2023
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants