Skip to content

Commit

Permalink
Update setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobdenobel authored Sep 1, 2022
1 parent e153844 commit 0f3bb80
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,11 @@
import os
from glob import glob

import setuptools
from pybind11.setup_helpers import Pybind11Extension, build_ext

with open("README.md", "r") as fh:
long_description = fh.read()

__version__ = "auto"
gh_ref = os.environ.get("GITHUB_REF")
if gh_ref:
*_, tag = gh_ref.split("/")
__version__ = tag.replace("v", "")

ext = Pybind11Extension(
"modcma.cpp",
glob("src/*cpp"),
include_dirs=["src"],
cxx_std=17
)
__version__ = "0.0.2.8.3"

setuptools.setup(
name='modcma',
Expand All @@ -31,15 +18,12 @@
packages=setuptools.find_packages(),
install_requires=[
'numpy',
'numba',
'scipy',
'iohexperimenter'
'ioh'
],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
ext_modules=[ext],
cmdclass={"build_ext": build_ext},
)

0 comments on commit 0f3bb80

Please sign in to comment.