Skip to content

Commit

Permalink
fix cython
Browse files Browse the repository at this point in the history
  • Loading branch information
AWehrhahn committed Jun 8, 2021
1 parent 0032b42 commit b87b2b0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/make.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ jobs:
- run: pip3 install -r cython/requirements.txt
- run: |
cd cython/
cp -r ../lib lib
cp -r ../share share
python3 setup.py build_ext --inplace
pip3 install .
cd ..
Expand Down Expand Up @@ -236,6 +238,8 @@ jobs:
pip3 install -r test/requirements.txt
pip3 install -r cython/requirements.txt
cd cython/
cp -r ../lib lib
cp -r ../share share
python3 setup.py build_ext --inplace
pip3 install .
cd ..
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion cython/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import numpy as np
from Cython.Build import cythonize

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

print("lib_path: " + lib_path)
Expand Down
4 changes: 2 additions & 2 deletions cython/smelib.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ctypedef short np_short_t
ctypedef float np_float_t
ctypedef long np_long_t

cdef extern from "sme_python_bridge.h":
cdef extern from "include/sme_python_bridge.h":
cdef struct s_IDL_STRING:
int slen
short stype
Expand Down Expand Up @@ -56,7 +56,7 @@ cdef extern from "sme_python_bridge.h":
const char * Python_GetLineOpacity(double wave, short nmu, double * lop, double * cop, double * scr, double * tsf, double * csf)
const char * Python_GetLineRange(double * linerange, int nlines)

cdef extern from "sme_synth_faster.h":
cdef extern from "include/sme_synth_faster.h":
int GetNLINES()
short GetNRHOX()
char * GetSPNAME()
Expand Down

0 comments on commit b87b2b0

Please sign in to comment.