hgview #46134 hgview does not work on Windows [done]
Version 0.11.2 was the last one to work on Windows. The setup.py in more recent versions doesn't work and refers to non-existent files. I've tried patching setup.py, but the resulting package doesn't run. | |
priority | normal |
---|---|
type | bug |
done in | 1.7.0 |
load | 3.000 |
load left | 0.000 |
closed by | <not specified> |
Comments
-
2010/09/23 12:09, written by acampeas
-
2010/09/23 14:25, written by ddouard
-
2010/11/05 10:19, written by jmb
add commentI swear I've been using hgview 1.x+ on windows; however I am not sure if that was not directly from sources indeed.
For the little story: I am currently running hgview on a winXP platform, installed using setup.py.
But the setup script need work on win32, that's true.
OK, I gave it another go and managed to get it running with setup.py and only a small patch. Don't know what I was doing last time I tried for it not to work.
EDIT: I can't find how to attach the new patch, so since it is pretty small, I'll just put it inline here:
diff -r 1d2ea5dea235 -r a61579c7fd84 setup.py
--- a/setup.py Wed Aug 25 17:02:49 2010 +0200
+++ b/setup.py Fri Nov 05 11:07:17 2010 +0100
@@ -197,14 +197,7 @@
kwargs = {}
# to generate qct MSI installer, you run python setup.py bdist_msi
#from setuptools import setup
- if os.name in ['nt']:
- # the msi will automatically install the qct.py plugin into hgext
- kwargs['data_files'] = [('lib/site-packages/hgext', ['hgext/hgview.py']),
- ('mercurial/hgview.d', ['hgview.rc']),
- ('share/hgview', ['doc/hgview.1.html', 'README', 'README.mercurial'])]
- scripts = ['win32/hgview_postinstall.py']
- else:
- scripts = ['bin/hgview']
+ scripts = ['bin/hgview']
kwargs['package_dir'] = {modname : modname}
packages = ['hgviewlib', 'hgviewlib.qt4', 'hgext'] # [modname] + get_packages(modname, modname)