ghex: update to 46.1
[oi-userland.git] / make-rules / setup.py-defaults.mk
blob72cd53b489abab6cadbfda0aef4021f66785d8c5
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2022 Marcel Telka
17 # Component defaults
20 # Support for Post-releases (see PEP 440).
21 COMPONENT_VERSION ?= $(shell echo $(HUMAN_VERSION) | $(GSED) -e 's/\.post.*//')
22 COMPONENT_CLASSIFICATION ?= Development/Python
23 COMPONENT_SRC ?= $(COMPONENT_NAME)-$(HUMAN_VERSION)
24 COMPONENT_ARCHIVE ?= $(COMPONENT_SRC).tar.gz
25 # To make the package name comparable we normalize it here by following the
26 # PyPA Core metadata specifications and PEP 503.
27 COMPONENT_FMRI ?= library/python/$(shell echo $(COMPONENT_NAME) | tr [A-Z] [a-z] | $(GSED) -e 's/[._-]\{1,\}/-/g')
28 COMPONENT_PROJECT_URL ?= https://pypi.org/project/$(COMPONENT_NAME)/
29 # https://warehouse.pypa.io/api-reference/integration-guide.html#predictable-urls
30 COMPONENT_ARCHIVE_URL ?= https://files.pythonhosted.org/packages/source/$(shell echo $(COMPONENT_NAME) | cut -c 1)/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
31 COMPONENT_PYPI ?= $(COMPONENT_NAME)
32 # Enable ASLR by default. Component could disable ASLR by setting
33 # COMPONENT_ASLR to 'no'.
34 ifeq ($(strip $(COMPONENT_ASLR)),no)
35 ASLR_MODE = $(ASLR_DISABLE)
36 else
37 ASLR_MODE = $(ASLR_ENABLE)
38 endif
40 # By default we build Python projects for all supported Python versions
41 SINGLE_PYTHON_VERSION ?= no