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

Fix: #730 and #733 - Unable to build/install under Python 3.12 #738

Merged
merged 5 commits into from
Dec 5, 2023

Conversation

T1t4m1un
Copy link
Contributor

FIX #733 :
Replaced deprecated names based on Python 3.12's changelog (configparser.SafeConfigParser -> configparser.ConfigParser, configparser.readfp() -> configparser.read_file()). These two both have been introduced into lib before python 3,5, barely not introduce the risk of front-compatibility.

FIX #730 :
After I fix the problem introduced by deprecated module and method, new problem that GCC cannot compile the cython C code. I found the pre-generated code is under a fairly old version of cython, which generation raising many warnings while compiling.

  1. Added Cython as a dependency.
  2. Changed the generation of the Cython C code for release to occur and compile during setup.py execution.

…thon 3.12

1. Replaced deprecated names based on Python 3.12's changelog (configparser.SafeConfigParser -> configparser.ConfigParser, configparser.readfp() -> configparser.read_file()).
2. Added Cython as a dependency.
3. Changed the generation of the Cython C code for release to occur and compile during setup.py execution.
@nickineering
Copy link

I would love to see this merged!

setup.py Outdated
@@ -3,6 3,8 @@
from setuptools.extension import Extension
Copy link

Choose a reason for hiding this comment

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

Is this import still necessary?

Copy link
Collaborator

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

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

Thank you for the PR @T1t4m1un ! I updated the PR to include 3.12 in the tests.

LGTM

@thomasjpfan thomasjpfan merged commit 2ee1e21 into amueller:main Dec 5, 2023
18 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.

Unable to download wordcloud using python3.12 Fails to build with Python 3.12
4 participants