summaryrefslogtreecommitdiff
path: root/lang/python27/buildlink3.mk
diff options
context:
space:
mode:
authorobache <obache>2011-02-22 08:51:58 +0000
committerobache <obache>2011-02-22 08:51:58 +0000
commit829319f0e7f460683fce615fa8440bc5ec9338cc (patch)
tree9cc290fdaf8bda35f2c9648ad4f29168132c7584 /lang/python27/buildlink3.mk
parentcbc15ef5d8db350e49c6ff6e94029f89c0685535 (diff)
downloadpkgsrc-829319f0e7f460683fce615fa8440bc5ec9338cc.tar.gz
Import python27-2.7.1 as lang/python27.
Python 2.7 is intended to be the last major release in the 2.x series. The Python maintainers are planning to focus their future efforts on the Python 3.x series. This means that 2.7 will remain in place for a long time, running production systems that have not been ported to Python 3.x. Two consequences of the long-term significance of 2.7 are: * It's very likely the 2.7 release will have a longer period of maintenance compared to earlier 2.x versions. Python 2.7 will continue to be maintained while the transition to 3.x continues, and the developers are planning to support Python 2.7 with bug-fix releases beyond the typical two years. * A policy decision was made to silence warnings only of interest to developers. :exc:`DeprecationWarning` and its descendants are now ignored unless otherwise requested, preventing users from seeing warnings triggered by an application. This change was also made in the branch that will become Python 3.2. (Discussed on stdlib-sig and carried out in :issue:`7319`.) In previous releases, :exc:`DeprecationWarning` messages were enabled by default, providing Python developers with a clear indication of where their code may break in a future major version of Python. However, there are increasingly many users of Python-based applications who are not directly involved in the development of those applications. :exc:`DeprecationWarning` messages are irrelevant to such users, making them worry about an application that's actually working correctly and burdening application developers with responding to these concerns. You can re-enable display of :exc:`DeprecationWarning` messages by running Python with the :option:`-Wdefault <-W>` (short form: :option:`-Wd <-W>`) switch, or by setting the :envvar:`PYTHONWARNINGS` environment variable to ``"default"`` (or ``"d"``) before running Python. Python code can also re-enable them by calling ``warnings.simplefilter('default')``.
Diffstat (limited to 'lang/python27/buildlink3.mk')
-rw-r--r--lang/python27/buildlink3.mk24
1 files changed, 24 insertions, 0 deletions
diff --git a/lang/python27/buildlink3.mk b/lang/python27/buildlink3.mk
new file mode 100644
index 00000000000..db856817acc
--- /dev/null
+++ b/lang/python27/buildlink3.mk
@@ -0,0 +1,24 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2011/02/22 08:52:01 obache Exp $
+
+BUILDLINK_TREE+= python27
+
+.if !defined(PYTHON27_BUILDLINK3_MK)
+PYTHON27_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.python27+= python27>=2.7
+BUILDLINK_PKGSRCDIR.python27?= ../../lang/python27
+
+. if defined(BUILDLINK_DEPMETHOD.python)
+BUILDLINK_DEPMETHOD.python27?= ${BUILDLINK_DEPMETHOD.python}
+. endif
+
+BUILDLINK_INCDIRS.python27+= include/python2.7
+BUILDLINK_LIBDIRS.python27+= lib/python2.7/config
+BUILDLINK_TRANSFORM+= l:python:python2.7
+
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.endif # PYTHON27_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -python27