freebsd-ports/Mk
Kubilay Kocak 6a7e32d7ee Any python package that uses console_scripts in setup.py needs the
pkg_resources module from setuptools at run time. This generally means
anything that installs a CLI utility.

Package-only users do not get setuptools installed when they install
the packages of these ports currently, because USE_PYDISTUTILS=yes doesnt set
a RUN_DEPENDS on it.

This breaks console script invocation, with the following error:

Traceback (most recent call last):
  File "/usr/local/bin/<script-name>", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

The FreeBSD Python team has recently standardised on a consistent
installation pattern for all python software, whether pure-distutils or
setuptools based, and this run-time requirement is currently not being
satisfied, breaking ports that use that functionality.

This commit moves RUN_DEPENDS+=setuptools from the =easy_install *only*
case, to the default case. This does mean that py27-setuptools and
py33-setuptools cannot be installed concurrently, precluding dual stack
Python installations.

The FreeBSD Python team is working hard towards a future where  multiple
python and packages versions *can* be installed concurrently, but it is
not explicitly supported in the current state. Improvements to FreeBSD's
ports and package frameworks will help achieve that goal.

[1] http://lists.freebsd.org/pipermail/freebsd-python/2014-February/006592.html
[2] http://lists.freebsd.org/pipermail/freebsd-python/2014-February/006609.html

PR:		ports/186706
Reported by:	Scott Sturdivant <scott dot sturdivant at gmail.com>
Reviewed by:	antoine, rm, mva
MFH:		2014Q1
2014-02-16 14:41:43 +00:00
..
Scripts Try and force people to check the plist makeplist generates. 2014-02-10 09:19:28 +00:00
Uses Add java_CMD. Although Java programs don't use shebangs, it is sometimes 2014-02-15 09:20:53 +00:00
bsd.apache.mk Use default-versions.mk for Apache, PHP, MySQL And PostgreSQL. 2014-02-11 17:12:28 +00:00
bsd.autotools.mk Convert LIB_DEPENDS 2013-12-13 10:44:22 +00:00
bsd.commands.mk xz being included in all supported base system, remove code using version 2014-01-13 07:28:31 +00:00
bsd.database.mk Use default-versions.mk for Apache, PHP, MySQL And PostgreSQL. 2014-02-11 17:12:28 +00:00
bsd.default-versions.mk Use default-versions.mk for Apache, PHP, MySQL And PostgreSQL. 2014-02-11 17:12:28 +00:00
bsd.destdir.mk - Remove emacs mode, -*- mode: ...; -*- [1] 2012-05-23 08:17:49 +00:00
bsd.drupal.mk - Remove CVS reference 2013-05-20 00:45:26 +00:00
bsd.efl.mk - Convert to new LIB_DEPENDS syntax 2013-09-29 09:31:56 +00:00
bsd.emacs.mk GNU Emacs updates 2013-03-30 05:13:30 +00:00
bsd.fpc.mk Use default-versions.mk for Apache, PHP, MySQL And PostgreSQL. 2014-02-11 17:12:28 +00:00
bsd.gcc.mk Unregister lang/gcc44 now that it is no longer used by any port. 2014-01-26 16:33:53 +00:00
bsd.gecko.mk - Update Firefox to 27.0 2014-02-05 05:23:30 +00:00
bsd.gnome.mk Update ltverhack. 2013-12-27 16:05:36 +00:00
bsd.gnustep.mk Specify minor version of libobjc to avoid LIB_DEPENDS to catch the gcc version if gcc is installed 2014-01-28 08:15:38 +00:00
bsd.gstreamer.mk Update to 1.2.2. 2013-12-30 12:56:11 +00:00
bsd.java.mk Change DESTDIRNAME into a ant compatible argument when a port is staged 2013-11-12 10:36:16 +00:00
bsd.kde4.mk - Update KDevelop ports to 4.6.0 [1] 2014-01-17 20:34:33 +00:00
bsd.ldap.mk bmake is quite strict with != make it really happy 2013-05-02 17:12:43 +00:00
bsd.licenses.db.mk Add GMGPL to license database 2014-02-15 15:44:29 +00:00
bsd.licenses.mk Remove more now useless fallback targets 2014-01-03 23:05:37 +00:00
bsd.linux-apps.mk Now that x11-toolkits/linux-f10-gtk is gone, remove its definition. 2013-12-01 00:40:07 +00:00
bsd.linux-rpm.mk - Remove a check insisting that Fedora 10 ports can only be run when 2014-01-17 13:20:09 +00:00
bsd.local.mk - Remove emacs mode, -*- mode: ...; -*- [1] 2012-05-23 08:17:49 +00:00
bsd.lua.mk Finish removing support for lua50 2013-11-18 16:15:51 +00:00
bsd.mate.mk Say hello to Mate 1.6. 2013-11-23 11:39:07 +00:00
bsd.ocaml.mk - Fix svn properties for Mk/bsd.ocaml.mk 2013-09-20 12:16:14 +00:00
bsd.octave.mk - Move the MAKE_ARGS variables from some individual math/octave-forge-* 2014-01-23 05:05:19 +00:00
bsd.openssl.mk Adjust the LDFLAGS from USE_NCURSES and USE_OPENSSL to fix build with clang: 2012-12-10 17:51:48 +00:00
bsd.options.desc.mk - Support for the MATE desktop environment support 2014-01-29 20:43:01 +00:00
bsd.options.mk Use OPTIONS helpers from excluded options too 2014-02-15 14:33:39 +00:00
bsd.pbi.mk - Fix bsd.pbi.mk to pull pbi-manager from the correct port 2013-09-27 10:10:29 +00:00
bsd.php.mk Use default-versions.mk for Apache, PHP, MySQL And PostgreSQL. 2014-02-11 17:12:28 +00:00
bsd.pkgng.mk Add ccache-update-links to _FORCE_POST_PATTERNS to run it after gcc has 2014-02-12 21:35:41 +00:00
bsd.port.mk Add a user warning so that everyone get a notice about the upcoming EoL of pkg_install 2014-02-04 14:23:08 +00:00
bsd.port.options.mk - Remove emacs mode, -*- mode: ...; -*- [1] 2012-05-23 08:17:49 +00:00
bsd.port.post.mk
bsd.port.pre.mk
bsd.port.subdir.mk - Use proper UNAME variable here 2013-12-03 19:08:47 +00:00
bsd.python.mk Any python package that uses console_scripts in setup.py needs the 2014-02-16 14:41:43 +00:00
bsd.qt.mk In preparation for Qt 5 ports: 2014-01-06 16:16:52 +00:00
bsd.ruby.mk - Group common variable declarations together 2014-02-15 07:23:56 +00:00
bsd.sanity.mk Remove Useless test on the value of NO_STAGE 2014-01-27 07:23:07 +00:00
bsd.scons.mk Allow scons port to support staging 2013-10-02 22:33:27 +00:00
bsd.sdl.mk Version two of the SDL2_gfx library, compatible with SDL2.0. 2013-11-13 18:15:08 +00:00
bsd.sites.mk - Update MASTER_SITE_RUBY: add CDN by fastly.com 2014-02-11 16:50:46 +00:00
bsd.ssp.mk - Rename public name of SSP support to WITH_SSP_PORTS as /usr/src 2013-09-22 00:26:05 +00:00
bsd.stage.mk - Do not check for ${WRKDIR} in staged files, there are lots of false 2014-01-28 22:19:30 +00:00
bsd.tcl.mk - Switch default version of Tcl/Tk from 8.5 to 8.6 2013-05-21 08:59:02 +00:00
bsd.tex.mk - Update ls-R after fmtutil. 2013-06-08 11:48:04 +00:00
bsd.wx.mk New port: x11-toolkits/wxgtk30 -- Series 3.0 of the wxWidgets toolkit 2014-01-22 13:46:41 +00:00
bsd.xfce.mk - Fix devel/xfce4-dev-tools detection, when xfdev is used in USE_XFCE macro 2013-10-20 18:53:04 +00:00
bsd.xorg.mk Try to fix font handling for xorg fonts when using staging and pkgng. 2013-12-19 10:49:00 +00:00