$NetBSD: patch-ad,v 1.1 2008/06/13 04:55:53 bjs Exp $ --- setup.py.orig 2007-07-13 14:51:23.000000000 -0400 +++ setup.py @@ -13,22 +13,9 @@ scripts = ["cdv", "cdvserver", "cdvpassw plat_ext = [] data_files = [('share/doc/Codeville-' + Codeville.version, ['LICENSE.txt'])] -if sys.platform == 'win32': - from distutils.core import Extension - if sys.version < '2.4': - plat_ext = [Extension("Codeville.winrandom", - libraries = ['ws2_32', 'advapi32'], - sources = ["src/winrand.c"])] - for i in xrange(len(scripts)): - shutil.copy(scripts[i], scripts[i] + '.py') - scripts[i] = scripts[i] + '.py' - #os.copy('bin/winrandom.pyd', 'Codeville/winrandom.pyd') -else: - data_files[0][1].append('cdvserver.conf.sample') - for arg in sys.argv: if arg.find('wininst') >= 0: - data_files = [('', ['LICENSE.txt'])] + data_files = [(['LICENSE.txt'])] for i in xrange(len(scripts)): shutil.copy(scripts[i], scripts[i] + '.py') scripts[i] = scripts[i] + '.py'