This patch enables setup.py to run on Windows, but the resulting package doesn't work. |
# HG changeset patch
# Parent 221935455c72cc86ba698e2bb24db20009b41325
diff -r 221935455c72 setup.py
--- a/setup.py Thu Apr 23 14:42:25 2009 +0200
+++ b/setup.py Thu Sep 23 13:36:03 2010 +0200
@@ -212,11 +212,11 @@
if os.name in ['nt']:
# the msi will automatically install the qct.py plugin into hgext
kwargs['data_files'] = [('lib/site-packages/hgext', ['hgext/hgqv.py']),
- ('mercurial/hgrc.d', ['hgqv.rc']),
- ('share/hgqv', ['doc/hgqv.1.html', 'README', 'README.mercurial'])]
- scripts = ['win32/hgqv_postinstall.py']
+ ('mercurial/hgrc.d', ['hgext/hgqv.rc']),
+ ('share/hgqv', ['doc/hgqv.1.txt', 'README'])]
else:
- scripts = ['bin/hgqv']
+ kwargs['data_files'] = data_files
+ scripts = ['bin/hgqv']
except ImportError:
from distutils.core import setup
scripts = ['bin/hgqv']
@@ -233,7 +233,6 @@
author_email=author_email,
url=web,
scripts=ensure_scripts(scripts),
- data_files=data_files,
ext_modules=ext_modules,
cmdclass={'install_lib': MyInstallLib,
'build' : QtBuild,