Print this page
Remove Python 2.6
@@ -19,11 +19,11 @@
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
-# Copyright 2011-2012 OmniTI Computer Consulting, Inc. All rights reserved.
+# Copyright 2017 OmniTI Computer Consulting, Inc. All rights reserved.
# Use is subject to license terms.
#
# Load support functions
. ../../lib/functions.sh
@@ -30,35 +30,18 @@
PROG=pyOpenSSL
VER=0.11
SUMMARY="pyOpenSSL - Python interface to the OpenSSL library for Python 2.6"
DESC="$SUMMARY"
-# Pardon the copy/paste, but we have to do this twice (2.6 & 2.7) for now.
-# And the only way buildctl detects packages is by grepping for PKG assignment.
-
-OLDPV=$PYTHONVER
-
-set_python_version 2.6
+# In the future when we upgrade python again, be sure to wrap the following
+# around with set_python_version and reassign PKG and RUN_DEPENDS_IPS.
+# The only way buildctl detects packages is by grepping for PKG assignment.
XFORM_ARGS="-D PYTHONPKGVER=$PYTHONPKGVER"
-PKG=library/python-2/pyopenssl-26
-RUN_DEPENDS_IPS="runtime/python-26 library/security/openssl@1.0.2"
-init
-download_source $PROG $PROG $VER
-patch_source
-prep_build
-python_build
-make_package
-clean_up
-
-set_python_version 2.7
-XFORM_ARGS="-D PYTHONPKGVER=$PYTHONPKGVER"
PKG=library/python-2/pyopenssl-27
RUN_DEPENDS_IPS="runtime/python-27 library/security/openssl@1.0.2"
init
download_source $PROG $PROG $VER
patch_source
prep_build
python_build
make_package
clean_up
-
-set_python_version $OLDPV