commit | author | age
|
053684
|
1 |
# |
MT |
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. |
|
6 |
# |
|
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. |
|
10 |
# |
|
11 |
|
|
12 |
# |
|
13 |
# Copyright 2022 Marcel Telka |
|
14 |
# |
|
15 |
|
f31ed2
|
16 |
# |
053684
|
17 |
# Component defaults |
f31ed2
|
18 |
# |
5aa424
|
19 |
|
MT |
20 |
# Support for Post-releases (see PEP 440). |
|
21 |
COMPONENT_VERSION ?= $(shell echo $(HUMAN_VERSION) | $(GSED) -e 's/\.post.*//') |
053684
|
22 |
COMPONENT_CLASSIFICATION ?= Development/Python |
f31ed2
|
23 |
COMPONENT_SRC ?= $(COMPONENT_NAME)-$(HUMAN_VERSION) |
053684
|
24 |
COMPONENT_ARCHIVE ?= $(COMPONENT_SRC).tar.gz |
859923
|
25 |
# To make the package name comparable we normalize it here by following the |
MT |
26 |
# PyPA Core metadata specifications and PEP 503. |
ef3161
|
27 |
COMPONENT_FMRI ?= library/python/$(shell echo $(COMPONENT_NAME) | tr [A-Z] [a-z] | $(GSED) -e 's/[._-]\{1,\}/-/g') |
053684
|
28 |
COMPONENT_PROJECT_URL ?= https://pypi.org/project/$(COMPONENT_NAME)/ |
ce0737
|
29 |
# https://warehouse.pypa.io/api-reference/integration-guide.html#predictable-urls |
MT |
30 |
COMPONENT_ARCHIVE_URL ?= https://files.pythonhosted.org/packages/source/$(shell echo $(COMPONENT_NAME) | cut -c 1)/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE) |
75dfb3
|
31 |
COMPONENT_PYPI ?= $(COMPONENT_NAME) |
053684
|
32 |
# Enable ASLR by default. Component could disable ASLR by setting |
MT |
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 |
e537d3
|
39 |
|
MT |
40 |
# By default we build Python projects for all supported Python versions |
|
41 |
SINGLE_PYTHON_VERSION ?= no |