Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vtools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Klinische Genetica
capture-lumc
vtools
Commits
896ae2ed
Commit
896ae2ed
authored
6 years ago
by
Bollen
Browse files
Options
Downloads
Patches
Plain Diff
use numpy.get_includes in C-extensions
parent
bda5fd58
No related branches found
No related tags found
No related merge requests found
Pipeline
#2442
passed
6 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+0
-1
0 additions, 1 deletion
.gitlab-ci.yml
setup.py
+16
-5
16 additions, 5 deletions
setup.py
with
16 additions
and
6 deletions
.gitlab-ci.yml
+
0
−
1
View file @
896ae2ed
...
...
@@ -3,7 +3,6 @@ build:
tags
:
-
docker
script
:
-
apt-get update && apt-get install -y python-numpy
-
pip install --upgrade Cython
-
pip install --upgrade numpy
-
pip install --upgrade pip setuptools wheel
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
16
−
5
View file @
896ae2ed
...
...
@@ -6,23 +6,34 @@ setup.py
:copyright: (c) 2018 Leiden University Medical Center
:license: MIT
"""
from
os.path
import
abspath
,
dirname
,
join
from
setuptools
import
setup
,
find_packages
from
Cython.Build
import
cythonize
from
vtools
import
__version__
try
:
from
Cython.Build
import
cythonize
except
ImportError
:
raise
NotImplementedError
(
"
Installing cython on the fly not yet supported
"
)
try
:
import
numpy
as
np
except
ImportError
:
raise
NotImplementedError
(
"
Installing numpy on the fly not yet supported
"
)
readme_file
=
join
(
abspath
(
dirname
(
__file__
)),
"
README.md
"
)
with
open
(
readme_file
)
as
desc_handle
:
long_desc
=
desc_handle
.
read
()
# create extensions and add numpy includes to all of them.
cython_extensions
=
cythonize
(
"
vtools/*.pyx
"
)
for
ext
in
cython_extensions
:
ext
.
include_dirs
.
append
(
np
.
get_include
())
setup
(
name
=
"
vtools
"
,
version
=
__version__
,
version
=
"
0.0.1
"
,
description
=
"
Various tools operating over VCF files
"
,
author
=
"
Sander Bollen
"
,
author_email
=
"
a.h.b.bollen@lumc.nl
"
,
...
...
@@ -46,5 +57,5 @@ setup(
classifiers
=
[
"
Topic :: Scientific/Engineering :: Bio-Informatics
"
],
ext_modules
=
cython
ize
(
"
vtools/*.pyx
"
)
ext_modules
=
cython
_extensions
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment