freebsd-ports/devel/qct/files/patch-setup.py
Ruslan Makhmatkhanov 689b7e1db9 Switch back to using distutils to fix runtime. Also fix logic bug in
setup.py that had mixing use of setuptools with distutils.

With using setuptools some ui-related files are not generating
and not installing so gui becomes broken. As for original submitter's
plist problem, i believe it was also because it needs py-qt4-gui on build stage
too, not only on runtime (see QctBuild.compile_ui() in setup.py for details).
This port revision works fine for me both on live system and in tinderbox.

Please also note that this port doesn't work with modern mercurial versions,
but works fine with cvs/svn. hg support should be trivial to fix, but i have
no time/desire resources for this.

PR:		156975
Submitted by:	Lapo Luchini <lapo at lapo dot it>
2012-01-18 15:26:36 +00:00

25 lines
975 B
Python

--- setup.py.orig 2009-02-16 01:49:32.000000000 +0300
+++ setup.py 2012-01-18 19:01:41.000000000 +0400
@@ -10,20 +10,8 @@
raise SystemExit, "Qct requires python 2.4 or later."
extra = {}
-try:
- # 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
- extra['data_files'] = [('lib/site-packages/hgext', ['hgext/qct.py']),
- ('mercurial/hgrc.d', ['qct.rc']),
- ('share/qct', ['doc/qct.1.html', 'README', 'README.mercurial'])]
- extra['scripts'] = ['win32/qct_postinstall.py']
- else:
- extra['scripts'] = ['qct']
-except ImportError:
- from distutils.core import setup
- extra['scripts'] = ['qct']
+from distutils.core import setup
+extra['scripts'] = ['qct']
from distutils.command.build import build
from distutils.spawn import find_executable, spawn