Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
setup.py : Use itools setup one if available
  • Loading branch information
staverne committed Feb 1, 2017
1 parent bb5c660 commit 6c178fc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -7,3 +7,4 @@ dist
version.txt
test/pdf/*.pdf
.idea
itools/environment.json
12 changes: 11 additions & 1 deletion setup.py
Expand Up @@ -65,8 +65,18 @@ def get_compile_flags(command):


if __name__ == '__main__':
ext_modules = []
itools_is_available = False
try:
from itools.core import get_abspath
from itools.pkg import setup as itools_setup
itools_is_available = True
except:
pass
if itools_is_available:
itools_setup(get_abspath(''))
exit(0)

ext_modules = []
# XML Parser
try:
flags = get_compile_flags('pkg-config --cflags --libs glib-2.0')
Expand Down

0 comments on commit 6c178fc

Please sign in to comment.