Skip to content

Commit

Permalink
setup.py: Replace use of distuils by setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Feb 5, 2024
1 parent 0680e8a commit 37e173e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
from setuptools import setup, find_packages
from setuptools.extension import Extension
from distutils.command.build_ext import build_ext as du_build_ext
from setuptools.command.build_ext import build_ext as _build_ext

class build_ext(du_build_ext):
class build_ext(_build_ext):
def run(self):
from Cython.Build.Dependencies import cythonize
self.distribution.ext_modules[:] = cythonize(
self.distribution.ext_modules,
include_path = ["primecountpy"],
compiler_directives={'embedsignature': True, 'binding': True},
language_level=3)
du_build_ext.run(self)
_build_ext.run(self)


with open('VERSION') as version_file:
Expand Down

0 comments on commit 37e173e

Please sign in to comment.