diff options
author | Marcus Alves Grando <mnag@FreeBSD.org> | 2006-07-10 16:01:24 +0000 |
---|---|---|
committer | Marcus Alves Grando <mnag@FreeBSD.org> | 2006-07-10 16:01:24 +0000 |
commit | 567137897b6453e1c6289b1402df21d9504a204b (patch) | |
tree | 507e004c43275d25671d6d482df5210c3152ad0f /security/py-m2crypto/files | |
parent | 71a956d060601832d17236bc8eade9a79330e761 (diff) |
Notes
Diffstat (limited to 'security/py-m2crypto/files')
-rw-r--r-- | security/py-m2crypto/files/patch-setup.py | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/security/py-m2crypto/files/patch-setup.py b/security/py-m2crypto/files/patch-setup.py deleted file mode 100644 index 3848aa024d10..000000000000 --- a/security/py-m2crypto/files/patch-setup.py +++ /dev/null @@ -1,59 +0,0 @@ ---- setup.py.orig Sun Mar 28 08:06:59 2004 -+++ setup.py Fri Mar 18 22:44:10 2005 -@@ -12,56 +12,6 @@ - from distutils.core import setup, Extension - from distutils.command import build_ext - --# This copy of swig_sources is from Python 2.2. -- --def swig_sources (self, sources): -- -- """Walk the list of source files in 'sources', looking for SWIG -- interface (.i) files. Run SWIG on all that are found, and -- return a modified 'sources' list with SWIG source files replaced -- by the generated C (or C++) files. -- """ -- -- new_sources = [] -- swig_sources = [] -- swig_targets = {} -- -- # XXX this drops generated C/C++ files into the source tree, which -- # is fine for developers who want to distribute the generated -- # source -- but there should be an option to put SWIG output in -- # the temp dir. -- -- if self.swig_cpp: -- target_ext = '.cpp' -- else: -- target_ext = '.c' -- -- for source in sources: -- (base, ext) = os.path.splitext(source) -- if ext == ".i": # SWIG interface file -- new_sources.append(base + target_ext) -- swig_sources.append(source) -- swig_targets[source] = new_sources[-1] -- else: -- new_sources.append(source) -- -- if not swig_sources: -- return new_sources -- -- swig = self.find_swig() -- swig_cmd = [swig, "-python", "-ISWIG"] -- if self.swig_cpp: -- swig_cmd.append("-c++") -- -- for source in swig_sources: -- target = swig_targets[source] -- self.announce("swigging %s to %s" % (source, target)) -- self.spawn(swig_cmd + ["-o", target, source]) -- -- return new_sources -- --build_ext.build_ext.swig_sources = swig_sources -- - my_inc = os.path.join(os.getcwd(), 'SWIG') - - if os.name == 'nt': |