<gh_stars>1-10
import os
import sys
import re
import subprocess
from setuptools import setup

module_path = os.path.abspath(".")  # to make sure the compiler can find the required include files
PKG_VERSION = re.search(r'^__version__\s*=\s*"(.+)"', open("ksim68k.py", "rt").read(), re.MULTILINE).groups()[0]


if __name__ == "__main__":
    subprocess.check_call(["make", "-C", "Musashi", "m68kops.c"])
    setup(
        name="ksim68k",
        version=PKG_VERSION,
        cffi_modules=["build_ffi_module.py:ffibuilder"],
        include_dirs=[module_path],
        zip_safe=False,
        include_package_data=False,
        py_modules=["ksim68k"],
        install_requires=["cffi>=1.11.0"],
        setup_requires=["cffi>=1.11.0"],
        python_requires=">=3.6"
    )

import os
import sys
import re
import subprocess
from setuptools import setup

module_path = os.path.abspath(".")  # to make sure the compiler can find the required include files
PKG_VERSION = re.search(r'^__version__\s*=\s*"(.+)"', open("ksim68k.py", "rt").read(), re.MULTILINE).groups()[0]


if __name__ == "__main__":
    subprocess.check_call(["make", "-C", "Musashi", "m68kops.c"])
    setup(
        name="ksim68k",
        version=PKG_VERSION,
        cffi_modules=["build_ffi_module.py:ffibuilder"],
        include_dirs=[module_path],
        zip_safe=False,
        include_package_data=False,
        py_modules=["ksim68k"],
        install_requires=["cffi>=1.11.0"],
        setup_requires=["cffi>=1.11.0"],
        python_requires=">=3.6"
    )
# to make sure the compiler can find the required include files