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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
407f7422
Commit
407f7422
authored
Dec 16, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
76b66afe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
16 deletions
+20
-16
setup.py
setup.py
+20
-16
No files found.
setup.py
View file @
407f7422
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
#
#
# See COPYING file for full licensing terms.
# See COPYING file for full licensing terms.
# See https://www.nexedi.com/licensing for rationale and options.
# See https://www.nexedi.com/licensing for rationale and options.
from
golang.pyx.build
import
setup
,
DSO
,
Extension
as
PyGoExt
,
build_ext
as
_build_ext
from
golang.pyx.build
import
setup
,
DSO
as
_DSO
,
Extension
as
_
PyGoExt
,
build_ext
as
_build_ext
from
setuptools_dso
import
Extension
from
setuptools_dso
import
Extension
from
setuptools
import
Command
,
find_packages
from
setuptools
import
Command
,
find_packages
from
setuptools.command.build_py
import
build_py
as
_build_py
from
setuptools.command.build_py
import
build_py
as
_build_py
...
@@ -29,16 +29,30 @@ import os
...
@@ -29,16 +29,30 @@ import os
import
sys
import
sys
# XXX doc
def
_with_includes
(
what
,
*
argv
,
**
kw
):
kw
=
kw
.
copy
()
kw
[
'include_dirs'
]
=
[
'.'
,
'./include'
,
'./3rdparty/ccan'
,
'./3rdparty/include'
,
]
return
what
(
*
argv
,
**
kw
)
def
PyGoExt
(
*
argv
,
**
kw
):
return
_with_includes
(
_PyGoExt
,
*
argv
,
**
kw
)
def
DSO
(
*
argv
,
**
kw
):
return
_with_includes
(
_DSO
,
*
argv
,
**
kw
)
#_bigfile = Extension('wendelin.bigfile._bigfile',
#_bigfile = Extension('wendelin.bigfile._bigfile',
_bigfile
=
PyGoExt
(
'wendelin.bigfile._bigfile'
,
_bigfile
=
PyGoExt
(
'wendelin.bigfile._bigfile'
,
sources
=
[
sources
=
[
'bigfile/_bigfile.c'
,
'bigfile/_bigfile.c'
,
],
],
include_dirs
=
[
'./include'
,
'./3rdparty/ccan'
,
'./3rdparty/include'
],
define_macros
=
[(
'_GNU_SOURCE'
,
None
)],
define_macros
=
[(
'_GNU_SOURCE'
,
None
)],
language
=
'c'
,
language
=
'c'
,
extra_compile_args
=
[
extra_compile_args
=
[
...
@@ -235,11 +249,6 @@ setup(
...
@@ -235,11 +249,6 @@ setup(
'bigfile/virtmem.c'
,
'bigfile/virtmem.c'
,
'lib/bug.c'
,
'lib/bug.c'
,
'lib/utils.c'
],
'lib/utils.c'
],
include_dirs
=
[
# XXX dup
'./include'
,
'./3rdparty/ccan'
,
'./3rdparty/include'
],
define_macros
=
[(
'_GNU_SOURCE'
,
None
),
(
'BUILDING_LIBVIRTMEM'
,
None
)],
# XXX dup
define_macros
=
[(
'_GNU_SOURCE'
,
None
),
(
'BUILDING_LIBVIRTMEM'
,
None
)],
# XXX dup
language
=
'c'
,
language
=
'c'
,
extra_compile_args
=
[
# XXX dup
extra_compile_args
=
[
# XXX dup
...
@@ -265,11 +274,6 @@ setup(
...
@@ -265,11 +274,6 @@ setup(
'wcfs/internal/wcfs_watchlink.cpp'
,
'wcfs/internal/wcfs_watchlink.cpp'
,
'wcfs/internal/wcfs_misc.cpp'
,
'wcfs/internal/wcfs_misc.cpp'
,
],
],
include_dirs
=
[
# XXX -> common place
'./include'
,
'./3rdparty/ccan'
,
'./3rdparty/include'
],
extra_compile_args
=
[
extra_compile_args
=
[
'-std=gnu++11'
,
# not c++11 since we use typeof
'-std=gnu++11'
,
# not c++11 since we use typeof
],
],
...
...
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