Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 143387
Collapse All | Expand All

(-)file_not_specified_in_diff (-14 / +3 lines)
Line  Link Here
0
-- setup.py
0
++ setup.py
Lines 16-22 Link Here
16
inc = [join("changes", "include"), join(amanith_base, "include"), "include"]
16
inc = [join("changes", "include"), join(amanith_base, "include"), "include"]
17
lib = [join(amanith_base, "lib")]
17
lib = [join(amanith_base, "lib")]
18
cc_args = []
18
cc_args = []
19
swig_args = ["-Ibuild/amanith"]
19
swig_args = ["-Ichanges/include", "-Iinclude", "-I/usr/include"]
20
20
21
if os.name == "nt":
21
if os.name == "nt":
22
  if debug:
22
  if debug:
Lines 39-58 Link Here
39
        relPath = join(root, file).replace(source + os.sep, "")
39
        relPath = join(root, file).replace(source + os.sep, "")
40
        shutil.copy(join(source, relPath), join(target, relPath))
40
        shutil.copy(join(source, relPath), join(target, relPath))
41
  
41
  
42
  def run(self):
43
    # Ultimately this should use patch(1) or something, but for now
44
    # we just copy the stuff over.
45
    if not os.path.isdir(join("build", "amanith")):
46
      os.makedirs(join("build", "amanith"))
47
      shutil.copytree(join(amanith_base, "include"), join("build", "amanith", "include"))
48
    self.copy("changes", join("build", "amanith"))
49
    _build_ext.run(self)
50
42
51
ext_amanith = Extension('_amanith', ['amanith.i'],
43
ext_amanith = Extension('_amanith', ['amanith.i'],
52
                        include_dirs = inc,
44
                        swig_opts = swig_args, extra_compile_args = swig_args)
53
                        library_dirs = lib,
54
                        libraries = libs,
55
                        extra_compile_args = cc_args)
56
                        
45
                        
57
setup(name = 'PyAmanith',
46
setup(name = 'PyAmanith',
58
      version = '0.3.34',
47
      version = '0.3.34',

Return to bug 143387