Skip to content

Commit

Permalink
update setup
Browse files Browse the repository at this point in the history
  • Loading branch information
AWehrhahn committed Jun 8, 2021
1 parent 1e2ba5a commit 0032b42
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cython/setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
from os.path import join, realpath, dirname
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
from os.path import dirname, join, realpath

import numpy as np
from Cython.Build import cythonize

lib_path = realpath(join(dirname(__file__), "../lib"))
file_path = realpath(join(dirname(__file__), "smelib.pyx"))

print("lib_path: " + lib_path)
print("file_path: " + file_path)

examples_extension = Extension(
name="smelib",
sources=[file_path],
Expand All @@ -18,4 +22,4 @@
setup(
name="smelib",
ext_modules=cythonize([examples_extension], language_level=3)
)
)

0 comments on commit 0032b42

Please sign in to comment.