Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
elpa
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
14
Issues
14
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
elpa
elpa
Commits
dea2012c
Commit
dea2012c
authored
Nov 09, 2018
by
Sebastian Ohlmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix MAkefile.am for python wrapper
cython command now works for VPATH builds, test script fixed
parent
7bc5769f
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
Makefile.am
Makefile.am
+5
-8
No files found.
Makefile.am
View file @
dea2012c
...
...
@@ -628,7 +628,7 @@ wrapper_la_LIBADD = libelpa@SUFFIX@.la
wrapper_la_CFLAGS
=
$(PYTHON_INCLUDE)
$(NUMPY_INCLUDE)
$(AM_CFLAGS)
python/pyelpa/wrapper.c
:
python/pyelpa/wrapper.pyx
cython
$<
cython
$<
-o
$@
# test scripts
TASKS
?=
2
...
...
@@ -654,14 +654,11 @@ endif
test_python.sh
:
@
echo
'#!/bin/bash'
>
$@
@
echo
'export PYTHONPATH=$$PYTHONPATH:
$(top_srcdir)
/python'
>>
$@
# this is very hacky... is there a better way to get wrapper.so?
@echo
'cp .libs/wrapper.so $(top_srcdir)/python/pyelpa'
>>
$@
# this is kind of hacky... is there a better way to get wrapper.so?
@echo 'export PYTHONPATH=$$PYTHONPATH
:
$(top_srcdir)/python:./.libs' >> $@
# the dlopen flags are needed for MKL to work properly...
@echo
"$(wrapper) python -c 'import sys, os; sys.setdlopenflags(os.RTLD_NOW | os.RTLD_GLOBAL); import pytest; pytest.main([\"$(top_srcdir)/python\"])'"
>>
$@
@echo
'exit_code=$$?'
>>
$@
@echo
'rm $(top_srcdir)/python/pyelpa/wrapper.so'
>>
$@
@echo
'exit $$exit_code'
>>
$@
# only in os from python 3.3 on
@echo
"$(wrapper) $(PYTHON) -c 'import sys, os; sys.setdlopenflags(os.RTLD_NOW | os.RTLD_GLOBAL); import pytest; pytest.main([\"$(top_srcdir)/python\"])'"
>>
$@
@chmod
+x
$@
include
doxygen.am
...
...
Write
Preview
Markdown
is supported
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