"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/setup.py.in" between
recode-3.7.4.tar.gz and recode-3.7.5.tar.gz

About: recode is a charset converter tool and library (fork of the original and now unmaintained GNU recode).

setup.py.in  (recode-3.7.4):setup.py.in  (recode-3.7.5)
#!/usr/bin/env python #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import os import os
from distutils.core import setup, Extension from distutils.core import setup, Extension
build = 'build' build = 'build'
srcdir = '@srcdir@' srcdir = '@srcdir@'
top_builddir = '@top_builddir@' top_builddir = '@top_builddir@'
top_srcdir = '@top_srcdir@' top_srcdir = '@top_srcdir@'
libintl = '@LIBINTL@' libintl = '@LIBINTL@'
skipping to change at line 26 skipping to change at line 26
# FIXME: On Mingw, Cython seems to call gcc in such a way that it doesn't unders tand UNIX paths # FIXME: On Mingw, Cython seems to call gcc in such a way that it doesn't unders tand UNIX paths
if os.name == 'nt': if os.name == 'nt':
for i in range(len(extra_libs)): for i in range(len(extra_libs)):
if extra_libs[i][0] == '/': if extra_libs[i][0] == '/':
extra_libs[i] = os.popen('cygpath --windows ' + extra_libs[i]).read( ).rstrip() extra_libs[i] = os.popen('cygpath --windows ' + extra_libs[i]).read( ).rstrip()
try: try:
if srcdir != '.': if srcdir != '.':
buffer = file(os.path.join(srcdir, 'Recode.c')).read() with open(os.path.join(srcdir, 'Recode.c')) as f:
file('Recode.c', 'w').write(buffer) buffer = f.read()
with open('Recode.c', 'w') as f:
f.write(buffer)
setup(ext_modules=[ setup(ext_modules=[
Extension('Recode', ['Recode.c'], Extension('Recode', ['Recode.c'],
include_dirs=[top_builddir, os.path.join(top_srcdir, 'src'), include_dirs=[top_builddir, os.path.join(top_srcdir, 'src'),
os.path.join(top_srcdir, 'lib')], os.path.join(top_srcdir, 'lib')],
library_dirs=[os.path.join(top_builddir, 'src', '.libs'), library_dirs=[os.path.join(top_builddir, 'src', '.libs'),
os.path.join(top_builddir, 'lib', '.libs')], os.path.join(top_builddir, 'lib', '.libs')],
libraries=['recode', 'gnu'], libraries=['recode', 'gnu'],
extra_link_args=extra_libs) extra_link_args=extra_libs)
]) ])
 End of changes. 2 change blocks. 
3 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)