Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opendht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
opendht
Commits
663f946a
"README.md" did not exist on "60c143f62e143e8335e2d76aeb85f97409d70bb4"
Commit
663f946a
authored
9 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
python: build cython module with autotools
parent
42ba16d0
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
configure.ac
+17
-2
17 additions, 2 deletions
configure.ac
tools/Makefile.am
+4
-0
4 additions, 0 deletions
tools/Makefile.am
tools/python/Makefile.am
+13
-0
13 additions, 0 deletions
tools/python/Makefile.am
tools/python/setup.py
+2
-0
2 additions, 0 deletions
tools/python/setup.py
with
36 additions
and
2 deletions
configure.ac
+
17
−
2
View file @
663f946a
...
@@ -18,6 +18,18 @@ AC_CHECK_PROGS([DOXYGEN], [doxygen])
...
@@ -18,6 +18,18 @@ AC_CHECK_PROGS([DOXYGEN], [doxygen])
if test -z "$DOXYGEN";
if test -z "$DOXYGEN";
then AC_MSG_WARN([Doxygen not found - continuing without Doxygen support])
then AC_MSG_WARN([Doxygen not found - continuing without Doxygen support])
fi
fi
AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"])
AM_PATH_PYTHON([3.3],, [:])
AM_CONDITIONAL([HAVE_PYTHON], [test -n "$PYTHON"])
if test -n "$PYTHON"; then
AC_CHECK_PROGS([CYTHON], [cython])
if test -z "$CYTHON";
then AC_MSG_WARN([Cython not found - continuing without cython support])
fi
fi
AM_CONDITIONAL([USE_CYTHON], [test -n "$CYTHON"])
case "${host_os}" in
case "${host_os}" in
"")
"")
...
@@ -64,8 +76,11 @@ PKG_CHECK_MODULES([GNUTLS], [gnutls >= 3.1])
...
@@ -64,8 +76,11 @@ PKG_CHECK_MODULES([GNUTLS], [gnutls >= 3.1])
AC_ARG_ENABLE([tools], AS_HELP_STRING([--disable-tools],[Disable tools (CLI DHT node)]),,build_tools=yes)
AC_ARG_ENABLE([tools], AS_HELP_STRING([--disable-tools],[Disable tools (CLI DHT node)]),,build_tools=yes)
AM_CONDITIONAL(ENABLE_TOOLS, test x$build_tools == xyes)
AM_CONDITIONAL(ENABLE_TOOLS, test x$build_tools == xyes)
AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"])
AM_COND_IF([HAVE_DOXYGEN], [AC_CONFIG_FILES([doc/Doxyfile doc/Makefile])])
AM_COND_IF([HAVE_DOXYGEN], [AC_CONFIG_FILES([doc/Doxyfile doc/Makefile])])
AM_COND_IF([USE_CYTHON], [AC_CONFIG_FILES([tools/python/Makefile])])
AC_CONFIG_FILES([Makefile src/Makefile tools/Makefile opendht.pc])
AC_CONFIG_FILES([Makefile
src/Makefile
tools/Makefile
opendht.pc])
AC_OUTPUT
AC_OUTPUT
This diff is collapsed.
Click to expand it.
tools/Makefile.am
+
4
−
0
View file @
663f946a
if
USE_CYTHON
SUBDIRS
=
python
endif
libexec_PROGRAMS
=
dhtnode dhtchat
libexec_PROGRAMS
=
dhtnode dhtchat
AM_CPPFLAGS
=
-I
../include
AM_CPPFLAGS
=
-I
../include
...
...
This diff is collapsed.
Click to expand it.
tools/python/Makefile.am
0 → 100644
+
13
−
0
View file @
663f946a
if
USE_CYTHON
pybuild.stamp
:
LDFLAGS
=
"-L
$(
top_srcdir
)
/src/.libs"
$(
PYTHON
)
setup.py build_ext
--inplace
echo
stamp
>
pybuild.stamp
CLEANFILES
=
pybuild.stamp
all-local
:
pybuild.stamp
clean-local
:
rm
-rf
$(
builddir
)
/build
$(
builddir
)
/
*
.so
endif
\ No newline at end of file
This diff is collapsed.
Click to expand it.
tools/python/setup.py
+
2
−
0
View file @
663f946a
...
@@ -20,12 +20,14 @@
...
@@ -20,12 +20,14 @@
from
distutils.core
import
setup
,
Extension
from
distutils.core
import
setup
,
Extension
from
Cython.Build
import
cythonize
from
Cython.Build
import
cythonize
from
Cython.Distutils
import
build_ext
setup
(
name
=
"
opendht
"
,
setup
(
name
=
"
opendht
"
,
version
=
"
0.1
"
,
version
=
"
0.1
"
,
description
=
"
Cython generated wrapper for opendht
"
,
description
=
"
Cython generated wrapper for opendht
"
,
author
=
"
Guillaume Roguez
"
,
author
=
"
Guillaume Roguez
"
,
license
=
"
GPLv3
"
,
license
=
"
GPLv3
"
,
cmdclass
=
{
'
build_ext
'
:
build_ext
},
ext_modules
=
cythonize
(
Extension
(
ext_modules
=
cythonize
(
Extension
(
"
opendht
"
,
"
opendht
"
,
[
"
opendht.pyx
"
],
[
"
opendht.pyx
"
],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment