Add dummy source code

This commit is contained in:
LAVAUX Guilhem 2020-04-28 14:52:59 +02:00
parent 74a59cb21b
commit f35d0cc694
2 changed files with 3 additions and 2 deletions

1
python/dummy.c Normal file
View File

@ -0,0 +1 @@
static void dummyFunc() {}

View File

@ -21,7 +21,7 @@ class CMakeExtension(Extension):
doesn't try to build your sources for you doesn't try to build your sources for you
""" """
def __init__(self, name, sources=[]): def __init__(self, name, sources=["python/dummy.c"]):
super().__init__(name = name, sources = sources) super().__init__(name = name, sources = sources)
@ -218,7 +218,7 @@ class BuildCMakeExt(build_ext):
CosmoTool_extension = CMakeExtension(name="cosmotool") CosmoTool_extension = CMakeExtension(name="cosmotool")
setup(name='cosmotool', setup(name='cosmotool',
version='1.0.0a3', version='1.0.0a4',
packages=["cosmotool"], packages=["cosmotool"],
package_dir={'cosmotool': 'python/cosmotool'}, package_dir={'cosmotool': 'python/cosmotool'},
setup_requires=['cython','cffi','numexpr'], setup_requires=['cython','cffi','numexpr'],