Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jul 2012 19:29:07 +1000 (EST)
From:      "Kubilay Kocak <koobs.freebsd@gmail.com>" <koobs.freebsd@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        jessekempf@gmail.com
Subject:   ports/170127: [PATCH] devel/py-mock: Fix deinstall when installed when setuptools is installed
Message-ID:  <20120725092907.728BC39E85@freebsd-90-amd64.localdomain>
Resent-Message-ID: <201207250930.q6P9UCR3087952@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         170127
>Category:       ports
>Synopsis:       [PATCH] devel/py-mock: Fix deinstall when installed when setuptools is installed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 25 09:30:11 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Kubilay Kocak <koobs.freebsd@gmail.com>
>Release:        FreeBSD 9.0-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD freebsd-90-amd64 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Sat Jul  7 21:26:56 EST
>Description:

Installs using distutils, but doesnt patch out setuptools imports from
setup.py. If setuptools is installed on the system, the port is installed 
as a compressed egg (setuptools) and fails to find pkg-plist files on deinstall.

- Patch setuptools bits out of setup.py to compensate.

==[QA]==

Redports build clean: https://redports.org/buildarchive/20120724045217-41546/

Added file(s):
- files/patch-setup.py

Port maintainer (jessekempf@gmail.com) is cc'd.

Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:

--- py27-mock-0.8.0.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/devel/py-mock/files/patch-setup.py ./files/patch-setup.py
--- /usr/ports/devel/py-mock/files/patch-setup.py	1970-01-01 10:00:00.000000000 +1000
+++ ./files/patch-setup.py	2012-07-24 14:47:41.000000000 +1000
@@ -0,0 +1,16 @@
+--- ./setup.py.orig	2012-07-23 23:32:47.000000000 +1000
++++ ./setup.py	2012-07-23 23:33:08.000000000 +1000
+@@ -61,12 +61,6 @@
+     classifiers=CLASSIFIERS,
+ )
+ 
+-try:
+-    from setuptools import setup
+-except ImportError:
+-    from distutils.core import setup
+-else:
+-    params['tests_require'] = ['unittest2']
+-    params['test_suite'] = 'unittest2.collector'
++from distutils.core import setup
+ 
+ setup(**params)
--- py27-mock-0.8.0.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120725092907.728BC39E85>