Skip to content

Add support for compiling with python3.11#1798

Merged
c-morley merged 1 commit intoLinuxCNC:masterfrom
dwrobel:Add-support-for-compiling-with-python3.11
Jul 10, 2022
Merged

Add support for compiling with python3.11#1798
c-morley merged 1 commit intoLinuxCNC:masterfrom
dwrobel:Add-support-for-compiling-with-python3.11

Conversation

@dwrobel
Copy link
Copy Markdown
Contributor

@dwrobel dwrobel commented Jul 4, 2022

Fixes build error on Fedora:
checking for python build information...
checking for python3.10... no
checking for python3.9... no
checking for python3.8... no
checking for python3.7... no
checking for python3.6... no
checking for python3.5... no
checking for python3.4... no
checking for python3.3... no
checking for python3.2... no
checking for python3.1... no
checking for python3.0... no
checking for python2.7... no
checking for python2.6... no
checking for python2.5... no
checking for python2.4... no
checking for python2.3... no
checking for python2.2... no
checking for python2.1... no
checking for python... no
results of the Python check:
Binary: no
Library: no
Include Dir: no
checking for ... no
checking for python... no
configure: error: Cannot find python in your system path

Signed-off-by: Damian Wrobel dwrobel@ertelnet.rybnik.pl

Fixes build error on Fedora:
 checking for python build information...
 checking for python3.10... no
 checking for python3.9... no
 checking for python3.8... no
 checking for python3.7... no
 checking for python3.6... no
 checking for python3.5... no
 checking for python3.4... no
 checking for python3.3... no
 checking for python3.2... no
 checking for python3.1... no
 checking for python3.0... no
 checking for python2.7... no
 checking for python2.6... no
 checking for python2.5... no
 checking for python2.4... no
 checking for python2.3... no
 checking for python2.2... no
 checking for python2.1... no
 checking for python... no
   results of the Python check:
     Binary:      no
     Library:     no
     Include Dir: no
 checking for ... no
 checking for python... no
 configure: error: Cannot find python in your system path

Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
@petterreinholdtsen
Copy link
Copy Markdown
Collaborator

What about dropping these tests for specific python versions and instead test for the features we need and object if they do not work as expected?

@dwrobel
Copy link
Copy Markdown
Contributor Author

dwrobel commented Jul 4, 2022

This is the minimal approach while still using ax_python.m4. A bigger cleanup would be needed for python3.12 when more things will very likely stop working. Here are the deprecation warnings:

checking for main in -lpython3.11... yes
<string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
<string>:1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
  results of the Python check:
    Binary:      python3.11
    Library:     python3.11
    Include Dir: /usr/include/python3.11
checking match between tk and Tkinter versions... 8.6
checking for site-package location... <string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
<string>:1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
/usr/lib/python3.11/site-packages

Complete build log: https://download.copr.fedorainfracloud.org/results/dwrobel/linuxcnc/fedora-rawhide-x86_64/04597118-linuxcnc/builder-live.log.gz

@c-morley c-morley merged commit 792e764 into LinuxCNC:master Jul 10, 2022
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.

3 participants