Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
extractor
Commits
e946de41
Commit
e946de41
authored
Jan 22, 2019
by
jkvis
Browse files
Working repeatable setup
parent
fd4040ad
Changes
3
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
e946de41
...
...
@@ -7,5 +7,5 @@ share/
lib64
pyvenv.cfg
description
_
extractor.egg-info/
descriptionextractor.egg-info/
extractor-core/
extractor-module.cc
View file @
e946de41
...
...
@@ -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_
description
extractor
(
void
)
{
return
PyModule_Create
(
&
extractormodule
);
}
// PyInit_extractor
}
// PyInit_
description
extractor
int
...
...
@@ -93,7 +93,7 @@ main(int, char* argv[])
return
EXIT_FAILURE
;
}
// if
PyImport_AppendInittab
(
"description
-
extractor"
,
PyInit_extractor
);
PyImport_AppendInittab
(
"descriptionextractor"
,
PyInit_
description
extractor
);
Py_SetProgramName
(
program
);
...
...
setup.py
View file @
e946de41
...
...
@@ -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'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment