Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
8444288c
Commit
8444288c
authored
Apr 06, 2020
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make embed test more debuggable by printing the path setup and the build output on failure.
parent
1338dda1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
5 deletions
+30
-5
Demos/embed/Makefile
Demos/embed/Makefile
+17
-0
runtests.py
runtests.py
+13
-5
No files found.
Demos/embed/Makefile
View file @
8444288c
...
...
@@ -15,6 +15,23 @@ LINKFORSHARED := $(shell $(PYTHON) -c "import distutils.sysconfig; print(distuti
LIBS
:=
$(
shell
$(PYTHON)
-c
"import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBS'
))
"
)
SYSLIBS
:=
$(
shell
$(PYTHON)
-c
"import distutils.sysconfig; print(distutils.sysconfig.get_config_var('SYSLIBS'
))
"
)
.PHONY
:
paths all clean test
paths
:
@
echo
"PYTHON=
$(PYTHON)
"
@
echo
"PYVERSION=
$(PYVERSION)
"
@
echo
"PYPREFIX=
$(PYPREFIX)
"
@
echo
"INCDIR=
$(INCDIR)
"
@
echo
"PLATINCDIR=
$(PLATINCDIR)
"
@
echo
"LIBDIR1=
$(LIBDIR1)
"
@
echo
"LIBDIR2=
$(LIBDIR2)
"
@
echo
"PYLIB=
$(PYLIB)
"
@
echo
"CC=
$(CC)
"
@
echo
"LINKCC=
$(LINKCC)
"
@
echo
"LINKFORSHARED=
$(LINKFORSHARED)
"
@
echo
"LIBS=
$(LIBS)
"
@
echo
"SYSLIBS=
$(SYSLIBS)
"
embedded
:
embedded.o
$(LINKCC)
-o
$@
$^
-L
$(LIBDIR1)
-L
$(LIBDIR2)
-l
$(PYLIB)
$(LIBS)
$(SYSLIBS)
$(LINKFORSHARED)
...
...
runtests.py
View file @
8444288c
...
...
@@ -1826,12 +1826,20 @@ class EmbedTest(unittest.TestCase):
if sys.version_info[0] >=3 and CY3_DIR:
cython = os.path.join(CY3_DIR, cython)
cython = os.path.abspath(os.path.join('..', '..', cython))
self.assertEqual(0, os.system(
"make PYTHON='%s' CYTHON='%s' LIBDIR1='%s' test > make.output" % (sys.executable, cython, libdir)))
try:
os.remove('make.output')
except OSError:
pass
subprocess.check_output([
"make",
"PYTHON='%s'" % sys.executable,
"CYTHON='%s'" % cython,
"LIBDIR1='%s'" % libdir,
"paths", "test",
])
except subprocess.CalledProcessError as err:
print(err.output.decode())
raise
self.assertTrue(True) # :)
def load_listfile(filename):
# just re-use the FileListExclude implementation
...
...
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