Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
31c0a458
Commit
31c0a458
authored
Oct 22, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 't2' into t
* t2: ~ MOSTLY OK . . . . . .
parents
76feca9e
8382c9af
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
11 deletions
+15
-11
.nxdtest
.nxdtest
+1
-2
lib/utils.c
lib/utils.c
+1
-1
setup.py
setup.py
+13
-8
No files found.
.nxdtest
View file @
31c0a458
# setup to run tests on Nexedi testing infrastructure.
# https://stack.nexedi.com/test_status
storv = ['fs', 'zeo', 'neo'] # storage backends to test against
# XXX ci
storv = ['fs', 'zeo', 'neo'] # storage backends to test against
# some bugs are only likely to trigger when there is only 1 or 2 main OS thread(s) in wcfs
# GOMAXPROCS='' means use `nproc`
...
...
lib/utils.c
View file @
31c0a458
...
...
@@ -182,7 +182,7 @@ void dump_traceback(int fd)
void
*
pcv
[
256
];
int
n
;
/*
XXX
better use https://github.com/ianlancetaylor/libbacktrace
/*
TODO
better use https://github.com/ianlancetaylor/libbacktrace
* because backtrace_symbols often does not provide symbolic information */
n
=
backtrace
(
pcv
,
256
);
backtrace_symbols_fd
(
pcv
,
n
,
fd
);
...
...
setup.py
View file @
31c0a458
...
...
@@ -28,9 +28,10 @@ from subprocess import Popen, PIPE
import
os
import
sys
from
errno
import
EEXIST
# tell cython to resolve `cimport wendelin.*` modules hierarcy starting at top-level.
# tell cython to resolve `cimport wendelin.*` modules hierarc
h
y starting at top-level.
# see wendelin.py for details.
from
Cython.Compiler.Main
import
Context
as
CyContext
cy_search_inc_dirs
=
CyContext
.
search_include_directories
...
...
@@ -72,7 +73,7 @@ def _with_defaults(what, *argv, **kw):
else
:
ccdefault
.
append
(
'-std=gnu++11'
)
# not c++11 since we use typeof
# DSOs are not yet annoated for visibility
# DSOs are not yet anno
t
ated for visibility
# XXX pyext besides _bigfile.so also cannot do this because PyMODINIT_FUNC
# does not include export in it. TODO reenable for _bigfile.so
"""
...
...
@@ -86,8 +87,8 @@ def _with_defaults(what, *argv, **kw):
lddefault
=
[]
# python extensions cannot be built with -Wl,--no-undefined: at runtime
# they link
s
with either python (without libpython) or libpython. linking
# with both libpython and python would be wrong
# they link with either python (without libpython) or libpython. linking
# with both libpython and python would be wrong
.
if
what
==
_DSO
:
lddefault
.
append
(
'-Wl,--no-undefined'
)
# check DSO for undefined symbols at link time
...
...
@@ -95,14 +96,13 @@ def _with_defaults(what, *argv, **kw):
_
[
0
:
0
]
=
lddefault
kw
[
'extra_link_args'
]
=
_
return
what
(
*
argv
,
**
kw
)
def
PyGoExt
(
*
argv
,
**
kw
):
return
_with_defaults
(
_PyGoExt
,
*
argv
,
**
kw
)
def
DSO
(
*
argv
,
**
kw
):
return
_with_defaults
(
_DSO
,
*
argv
,
**
kw
)
# build_py that
# - prevents in-tree wendelin.py & setup.py to be installed
# - synthesizes wendelin/__init__.py on install
...
...
@@ -188,8 +188,13 @@ class build_ext(_build_ext):
# copy wcfs/wcfs built from wcfs.go by make into build/lib.linux-x86_64-2.7/...
# so that py packaging tools see built wcfs.go as part of wendelin/wcfs package.
copy_file
(
'wcfs/wcfs'
,
os
.
path
.
join
(
self
.
build_lib
,
'wendelin/wcfs/wcfs'
),
verbose
=
self
.
verbose
,
dry_run
=
self
.
dry_run
)
dst
=
os
.
path
.
join
(
self
.
build_lib
,
'wendelin/wcfs'
)
try
:
os
.
makedirs
(
dst
)
except
OSError
as
e
:
if
e
.
errno
!=
EEXIST
:
raise
copy_file
(
'wcfs/wcfs'
,
dst
,
verbose
=
self
.
verbose
,
dry_run
=
self
.
dry_run
)
...
...
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