Skip to content

Commit

Permalink
Update setup.py to replace distutils.core by setuptools
Browse files Browse the repository at this point in the history
Fix #19
  • Loading branch information
PierreRaybaut committed Aug 1, 2024
1 parent cd296ec commit 0d6ceab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ In this release, test coverage is 79%.

🛠️ Bug fixes:

* [Issue #19](https://github.com/PlotPyStack/PlotPy/issues/19) - Fix `distutils`
deprecation in setup.py: replaced `distutils.core` by `setuptools` in the setup.py
script to avoid the deprecation warning when building the package with Python 3.10
and 3.11, and to ensure compatibility with earlier Python versions (PlotPy is already
compatible with the most recent Python versions: this only concerns the build system)
* Fix cyclic import in `plotpy.tools` module:
* Some tools in `plotpy.tools` subpackage were importing the `plotpy.plot` module,
which was importing the `plotpy.tools` module, causing a cyclic import issue
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
import os.path as osp
import platform
import sys
from distutils.core import setup

import numpy
from Cython import __version__ as __cython_version__
from Cython.Compiler import Main
from setuptools import Distribution, Extension
from setuptools import Distribution, Extension, setup

LIBNAME = "plotpy"
SRCPATH = osp.join(".", "src")
Expand Down

0 comments on commit 0d6ceab

Please sign in to comment.