Skip to content

Commit

Permalink
Fix libray paths for RTD. (#79)
Browse files Browse the repository at this point in the history
* Use relative paths in setup.py for RTD.

* Test absolute path for RTD.

* Test absolute path for RTD.

* Test absolute path for RTD.

* Test absolute path for RTD.

* Test absolute path for RTD.

* Test absolute path for RTD.
  • Loading branch information
scossu committed Oct 8, 2018
1 parent f2edbb5 commit b625db9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
16 changes: 16 additions & 0 deletions requirements_rtd.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
CoilMQ>=1.0.1
Flask>=0.12.2
HiYaPyCo>=0.4.11
PyYAML>=3.13
arrow>=0.10.0
click-log>=0.2.1
click>=6.7
gevent>=1.3.6
gunicorn>=19.7.1
pytest-flask
rdflib==4.2.2
requests-toolbelt>=0.8.0
requests>=2.18.4
sphinx-rtd-theme>=0.2.4
stomp.py>=4.1.20
wheel>=0.30.0a0
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
long_description = f.read()

# Extensions directory.
ext_dir = path.join(path.dirname(lakesuperior.basedir), 'ext')
#ext_dir = path.join(path.dirname(lakesuperior.basedir), 'ext')
ext_dir = 'ext'

include_dirs = [
path.join(ext_dir, 'include'),
Expand All @@ -54,15 +55,15 @@
[
path.join(ext_dir, 'lib', 'mdb.c'),
path.join(ext_dir, 'lib', 'midl.c'),
path.join(lakesuperior.basedir, 'store', f'base_lmdb_store.{ext}'),
path.join('lakesuperior', 'store', f'base_lmdb_store.{ext}'),
],
include_dirs=include_dirs,
),
Extension(
'lakesuperior.store.ldp_rs.term',
[
path.join(ext_dir, 'lib', 'tpl.c'),
path.join(lakesuperior.basedir, 'store', 'ldp_rs', f'term.{ext}'),
path.join('lakesuperior', 'store', 'ldp_rs', f'term.{ext}'),
],
include_dirs=include_dirs,
extra_compile_args=['-fopenmp'],
Expand All @@ -75,8 +76,7 @@
path.join(ext_dir, 'lib', 'mdb.c'),
path.join(ext_dir, 'lib', 'midl.c'),
path.join(
lakesuperior.basedir, 'store', 'ldp_rs',
f'lmdb_triplestore.{ext}'),
'lakesuperior', 'store', 'ldp_rs', f'lmdb_triplestore.{ext}'),
],
include_dirs=include_dirs,
extra_compile_args=['-fopenmp'],
Expand Down

0 comments on commit b625db9

Please sign in to comment.