Commit e946de41 authored by jkvis's avatar jkvis
Browse files

Working repeatable setup

parent fd4040ad
......@@ -7,5 +7,5 @@ share/
lib64
pyvenv.cfg
description_extractor.egg-info/
descriptionextractor.egg-info/
extractor-core/
......@@ -69,7 +69,7 @@ static PyMethodDef ExtractorMethods[] =
static struct PyModuleDef extractormodule =
{
PyModuleDef_HEAD_INIT,
"description-extractor",
"descriptionextractor",
"HGVS Variant Description Extractor",
-1,
ExtractorMethods
......@@ -77,10 +77,10 @@ static struct PyModuleDef extractormodule =
PyMODINIT_FUNC
PyInit_extractor(void)
PyInit_descriptionextractor(void)
{
return PyModule_Create(&extractormodule);
} // PyInit_extractor
} // PyInit_descriptionextractor
int
......@@ -93,7 +93,7 @@ main(int, char* argv[])
return EXIT_FAILURE;
} // if
PyImport_AppendInittab("description-extractor", PyInit_extractor);
PyImport_AppendInittab("descriptionextractor", PyInit_descriptionextractor);
Py_SetProgramName(program);
......
......@@ -5,14 +5,15 @@ import subprocess
class git_clone_external(build_ext):
def run(self):
subprocess.check_call(['rm', '-rf', 'extractor-core'])
subprocess.check_call(['git', 'clone', 'https://github.com/mutalyzer/extractor-core.git'])
build_ext.run(self)
extractor = Extension('description-extractor', sources = ['extractor-module.cc',
extractor = Extension('descriptionextractor', sources = ['extractor-module.cc',
'extractor-core/src/extractor.cc'])
setup(name = 'description-extractor',
setup(name = 'descriptionextractor',
version = '3.0',
cmdclass = {'build_ext': git_clone_external},
description = 'This is the extractor package',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment