mirror of
https://git.freebsd.org/ports.git
synced 2025-06-12 00:00:33 -04:00
When py-setuptools is installed, metadata for the python package is handled differently than when building the package in for instance poudriere. Fix the python bindings install script to always act the same way, regardless of setuptools. PR: 206769 Submitted by: Reid Linnemann <linnemannr@gmail.com> Reported by: dewayne@heuristicsystems.com.au Sponsored by: BSDCan 2016 Hackerlounge
16 lines
540 B
Python
16 lines
540 B
Python
--- bindings/python/setup.py.orig 2015-11-10 15:07:11 UTC
|
|
+++ bindings/python/setup.py
|
|
@@ -28,12 +28,7 @@
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
#
|
|
|
|
-try:
|
|
- # Attempt to build using Distribute, which also supports bdist_wheel
|
|
- from setuptools import setup
|
|
- from setuptools.extension import Extension
|
|
-except ImportError:
|
|
- from distutils.core import setup, Extension
|
|
+from distutils.core import setup, Extension
|
|
import sys, os
|
|
|
|
TOP_SRCDIR = os.environ.get('ABS_TOP_SRCDIR', '../..')
|