File: setup.py

package info (click to toggle)
ipe-tools 1%3A7.2.29.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 880 kB
  • sloc: cpp: 2,719; python: 2,122; ansic: 1,052; sh: 224; makefile: 94; xml: 39
file content (27 lines) | stat: -rw-r--r-- 863 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from distutils.core import setup, Extension

# compile options to find Lua and Ipe headers and libraries
lua_includes = [ '-I/usr/include/lua5.3' ]
lua_libs = [ '-llua5.3' ]

ipe_srcdir = '../../ipe/src'
ipe_libdir = '../../ipe/build/lib'

ipe_includes = [ '-I%s/include' % ipe_srcdir ]
ipe_libs = [ '-L%s' % ipe_libdir, '-lipelua', '-lipe' ]

ipemodule = Extension('ipe',
                      sources = ['ipepython.cpp'],
                      extra_compile_args = lua_includes + ipe_includes,
                      extra_link_args = lua_libs + ipe_libs,
)

setup(name = 'ipe',
      version = '2019.09.10',
      description = 'Use Ipelib from Python',
      url = 'https://github.com/otfried/ipe-tools/tree/python3/ipepython',
      author = 'Otfried Cheong',
      author_email = 'ipe@otfried.org',
      license = 'GPL3',
      ext_modules = [ipemodule],
)