Skip to content

Commit

Permalink
fixed build with newer setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
cnvogelg committed Aug 25, 2024
1 parent 49dd1cc commit bb15d5a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ def run(self):
# use own musashi config file
defines.append(("MUSASHI_CNF", '"my_conf.h"'))

# use cython?
if use_cython:
sourcefiles.append(cython_file)
else:
sourcefiles.append(ext_file)

extensions = [
Extension(
"machine68k",
Expand All @@ -207,10 +213,7 @@ def run(self):

# use cython?
if use_cython:
sourcefiles.append(cython_file)
extensions = cythonize(extensions, language_level="3str")
else:
sourcefiles.append(ext_file)

setup(
cmdclass=cmdclass,
Expand Down

0 comments on commit bb15d5a

Please sign in to comment.