Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
py-bake
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sds
py-bake
Commits
800b9ccf
Commit
800b9ccf
authored
Feb 19, 2019
by
Matthieu Dorier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corrected the way pybake looks for pybind11
parent
47bc978f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
setup.py
setup.py
+9
-1
No files found.
setup.py
View file @
800b9ccf
from
distutils.core
import
setup
from
distutils.core
import
setup
from
distutils.extension
import
Extension
from
distutils.extension
import
Extension
from
distutils.sysconfig
import
get_config_vars
from
distutils.sysconfig
import
get_config_vars
import
pybind11
import
pkgconfig
import
pkgconfig
import
os
import
os
import
os.path
import
os.path
import
sys
import
sys
def
get_pybind11_include
():
path
=
os
.
path
.
dirname
(
pybind11
.
__file__
)
return
'/'
.
join
(
path
.
split
(
'/'
)[
0
:
-
4
]
+
[
'include'
])
(
opt
,)
=
get_config_vars
(
'OPT'
)
(
opt
,)
=
get_config_vars
(
'OPT'
)
os
.
environ
[
'OPT'
]
=
" "
.
join
(
os
.
environ
[
'OPT'
]
=
" "
.
join
(
flag
for
flag
in
opt
.
split
()
if
flag
!=
'-Wstrict-prototypes'
flag
for
flag
in
opt
.
split
()
if
flag
!=
'-Wstrict-prototypes'
...
@@ -24,18 +29,21 @@ client_libraries = pk['libraries']
...
@@ -24,18 +29,21 @@ client_libraries = pk['libraries']
client_library_dirs
=
pk
[
'library_dirs'
]
client_library_dirs
=
pk
[
'library_dirs'
]
client_include_dirs
=
pk
[
'include_dirs'
]
client_include_dirs
=
pk
[
'include_dirs'
]
client_include_dirs
.
append
(
"."
)
client_include_dirs
.
append
(
"."
)
client_include_dirs
.
append
(
get_pybind11_include
())
# For server...
# For server...
pk
=
pkgconfig
.
parse
(
'bake-server'
)
pk
=
pkgconfig
.
parse
(
'bake-server'
)
server_libraries
=
pk
[
'libraries'
]
server_libraries
=
pk
[
'libraries'
]
server_library_dirs
=
pk
[
'library_dirs'
]
server_library_dirs
=
pk
[
'library_dirs'
]
server_include_dirs
=
pk
[
'include_dirs'
]
server_include_dirs
=
pk
[
'include_dirs'
]
server_include_dirs
.
append
(
"."
)
server_include_dirs
.
append
(
"."
)
server_include_dirs
.
append
(
get_pybind11_include
())
# For target...
# For target...
pk
=
pkgconfig
.
parse
(
'uuid'
)
pk
=
pkgconfig
.
parse
(
'uuid'
)
target_libraries
=
pk
[
'libraries'
]
target_libraries
=
pk
[
'libraries'
]
target_library_dirs
=
pk
[
'library_dirs'
]
target_library_dirs
=
pk
[
'library_dirs'
]
target_include_dirs
=
pk
[
'include_dirs'
]
target_include_dirs
=
pk
[
'include_dirs'
]
target_include_dirs
.
append
(
'.'
)
target_include_dirs
.
append
(
'.'
)
target_include_dirs
.
append
(
get_pybind11_include
())
pk
=
pkgconfig
.
parse
(
'bake-server'
)
pk
=
pkgconfig
.
parse
(
'bake-server'
)
target_include_dirs
.
extend
(
pk
[
'include_dirs'
])
target_include_dirs
.
extend
(
pk
[
'include_dirs'
])
...
@@ -62,7 +70,7 @@ pybake_target_module = Extension('_pybaketarget', ["pybake/src/target.cpp"],
...
@@ -62,7 +70,7 @@ pybake_target_module = Extension('_pybaketarget', ["pybake/src/target.cpp"],
depends
=
[
"pybake/src/target.cpp"
])
depends
=
[
"pybake/src/target.cpp"
])
setup
(
name
=
'pybake'
,
setup
(
name
=
'pybake'
,
version
=
'0.1'
,
version
=
'0.
2.
1'
,
author
=
'Matthieu Dorier'
,
author
=
'Matthieu Dorier'
,
description
=
"""Python binding for BAKE"""
,
description
=
"""Python binding for BAKE"""
,
ext_modules
=
[
pybake_server_module
,
pybake_client_module
,
pybake_target_module
],
ext_modules
=
[
pybake_server_module
,
pybake_client_module
,
pybake_target_module
],
...
...
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