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
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
Open sidebar
elpa
elpa
Commits
a7da2bbf
Commit
a7da2bbf
authored
Nov 13, 2018
by
Sebastian Ohlmann
Browse files
Make python test script compatible with make distcheck
parent
d9972420
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Makefile.am
View file @
a7da2bbf
...
...
@@ -655,13 +655,15 @@ endif
test_python.sh
:
@
echo
'#!/bin/bash'
>
$@
# this is kind of hacky... is there a better way to get wrapper.so?
@echo 'export PYTHONPATH=$(abs_top_srcdir)/python
:
$$PYTHONPATH' >> $@
@
echo
'ln -s
$(abs_top_builddir)
/.libs/wrapper.so
$(abs_top_srcdir)
/python/pyelpa'
>>
$@
@echo 'export PYTHONPATH=./python-copy
:
$$PYTHONPATH' >> $@
@
echo
'cp -r
$(abs_top_srcdir)
/python python-copy || exit 1'
>>
$@
@
echo
'chmod u+rwX -R python-copy || exit 1'
>>
$@
@
echo
'cp .libs/wrapper.so python-copy/pyelpa/ || exit 1'
>>
$@
# the dlopen flags are needed for MKL to work properly...
# 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;
res =
pytest.main([\"
$(abs_top_srcdir)/python\"]); sys.exit(res
)'"
>>
$@
@echo "$(wrapper) $(PYTHON) -c 'import sys, os; sys.setdlopenflags(os.RTLD_NOW | os.RTLD_GLOBAL); import pytest;
sys.exit(
pytest.main([\"
./python-copy\", \"-p\", \"no
:
cacheprovider
\"
])
)'" >> $@
@
echo
'exit_code=$$?'
>>
$@
@echo
'rm
$(abs_top_srcdir)/python/pyelpa/wrapper.so
'
>>
$@
@
echo
'rm
-rf python-copy || exit 1
'
>>
$@
@
echo
'exit $$exit_code'
>>
$@
@
chmod
+x
$@
...
...
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