#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
#
# upstream delivers python2 support separately as "py2cairo"
# replicated from $(WS_MAKE_RULES)/setup.py.mk since this uses waf.mk instead
# Cannot run tests until build machines update to s12_105 due to bug 23763105
# Requires newer version of cairo than we have available in S11.
# Trick bundled waf into unpacking itself so we can patch it
# Do not install optimised compiled .pyo files
CONFIGURE_OPTIONS += --nopyo
# This needed to be added for pycairo to build cleanly s12_109 onwards
# The bundled waf compiles to the old pre-python-3.2 locations, so
# tell it not to bother, and take care of it ourselves
CONFIGURE_OPTIONS += --nopyc
# waf picks up the PYTHONDIR & PYTHONARCHDIR settings at configure time,
# but still insists on installing to site-packages instead of vendor-packages
$(PROTO_DIR)$(PYTHON_SITE_DIR) ; \
# the test scripts aren't hooked into the test target in pycairo, so run directly
# py.test is required for testing, not building or runtime