File: setup.py.in

package info (click to toggle)
urjtag 2021.03-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 18,232 kB
  • sloc: ansic: 56,769; sh: 4,897; yacc: 2,159; lex: 1,545; vhdl: 1,324; makefile: 1,275; python: 72; sed: 16
file content (17 lines) | stat: -rw-r--r-- 710 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# python extension setup script for urjtag

from distutils.core import setup, Extension

libraries = ['urjtag']
libraries.extend( w.replace('-l', '') for w in "@LIBFTDI_LIBS@ @FTD2XXLIB@ @LIBUSB_LIBS@ @LIBINTL@".split() if w.replace('-l', '') not in libraries )

setup(name="urjtag",
      version="@VERSION@",
      description="urJtag Python Bindings",
      ext_modules=[
        Extension("urjtag", ["@srcdir@/chain.c", "@srcdir@/register.c"],
                  define_macros=[('HAVE_CONFIG_H', None)],
                  include_dirs=['@top_srcdir@', '@top_srcdir@/include', '@top_builddir@'],
                  library_dirs=['@top_builddir@/src/.libs'],
                  libraries=libraries)
         ])