Skip to content

Commit 0d6ceab

Browse files
committed
Update setup.py to replace distutils.core by setuptools
Fix #19
1 parent cd296ec commit 0d6ceab

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ In this release, test coverage is 79%.
3333

3434
🛠️ Bug fixes:
3535

36+
* [Issue #19](https://github.com/PlotPyStack/PlotPy/issues/19) - Fix `distutils`
37+
deprecation in setup.py: replaced `distutils.core` by `setuptools` in the setup.py
38+
script to avoid the deprecation warning when building the package with Python 3.10
39+
and 3.11, and to ensure compatibility with earlier Python versions (PlotPy is already
40+
compatible with the most recent Python versions: this only concerns the build system)
3641
* Fix cyclic import in `plotpy.tools` module:
3742
* Some tools in `plotpy.tools` subpackage were importing the `plotpy.plot` module,
3843
which was importing the `plotpy.tools` module, causing a cyclic import issue

setup.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
import os.path as osp
55
import platform
66
import sys
7-
from distutils.core import setup
87

98
import numpy
109
from Cython import __version__ as __cython_version__
1110
from Cython.Compiler import Main
12-
from setuptools import Distribution, Extension
11+
from setuptools import Distribution, Extension, setup
1312

1413
LIBNAME = "plotpy"
1514
SRCPATH = osp.join(".", "src")

0 commit comments

Comments
 (0)