• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/python/python.mk
Thomas De SchampheleireThomas De Schampheleire committed f268f7131b907 Oct 2014
Raw file
Source viewDiff to previous
xxxxxxxxxx
PYTHON_PATH = $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/sysconfigdata/:$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages/
 
1
################################################################################
2
#
3
# python
4
#
5
################################################################################
6
​
7
PYTHON_VERSION_MAJOR = 2.7
8
PYTHON_VERSION = $(PYTHON_VERSION_MAJOR).8
9
PYTHON_SOURCE = Python-$(PYTHON_VERSION).tar.xz
10
PYTHON_SITE = http://python.org/ftp/python/$(PYTHON_VERSION)
11
PYTHON_LICENSE = Python software foundation license v2, others
12
PYTHON_LICENSE_FILES = LICENSE
13
​
14
# Python needs itself to be built, so in order to cross-compile
15
# Python, we need to build a host Python first. This host Python is
16
# also installed in $(HOST_DIR), as it is needed when cross-compiling
17
# third-party Python modules.
18
​
19
HOST_PYTHON_CONF_OPTS +=    \
20
    --enable-static     \
21
    --without-cxx-main  \
22
    --disable-sqlite3   \
23
    --disable-tk        \
24
    --with-expat=system \
25
    --disable-curses    \
26
    --disable-codecs-cjk    \
27
    --disable-nis       \
28
    --enable-unicodedata    \
29
    --disable-dbm       \
30
    --disable-gdbm      \
31
    --disable-bsddb     \
32
    --disable-test-modules  \
33
    --disable-bz2       \
34
    --disable-ssl       \
35
    --disable-pyo-build
36
​
37
# Make sure that LD_LIBRARY_PATH overrides -rpath.
38
# This is needed because libpython may be installed at the same time that
39
# python is called.
40
HOST_PYTHON_CONF_ENV += \
41
    LDFLAGS="$(HOST_LDFLAGS) -Wl,--enable-new-dtags"
42
​
43
# Building host python in parallel sometimes triggers a "Bus error"
44
# during the execution of "./python setup.py build" in the
45
# installation step. It is probably due to the installation of a
46
# shared library taking place in parallel to the execution of
47
# ./python, causing spurious Bus error. Building host-python with
48
# MAKE1 has shown to workaround the problem.
49
HOST_PYTHON_MAKE = $(MAKE1)
50
​
51
PYTHON_DEPENDENCIES = host-python libffi
52
​
53
HOST_PYTHON_DEPENDENCIES = host-expat host-zlib
54
​
55
PYTHON_INSTALL_STAGING = YES
56
​
57
ifeq ($(BR2_PACKAGE_PYTHON_READLINE),y)
58
PYTHON_DEPENDENCIES += readline
59
endif
60
​
61
ifeq ($(BR2_PACKAGE_PYTHON_CURSES),y)
62
PYTHON_DEPENDENCIES += ncurses
63
else
64
PYTHON_CONF_OPTS += --disable-curses
65
endif
66
​
67
ifeq ($(BR2_PACKAGE_PYTHON_PYEXPAT),y)
68
PYTHON_DEPENDENCIES += expat
69
PYTHON_CONF_OPTS += --with-expat=system
70
else
71
PYTHON_CONF_OPTS += --with-expat=none
72
endif
73
​
74
ifeq ($(BR2_PACKAGE_PYTHON_BSDDB),y)
75
PYTHON_DEPENDENCIES += berkeleydb
76
else
77
PYTHON_CONF_OPTS += --disable-bsddb
78
endif
79
​
80
ifeq ($(BR2_PACKAGE_PYTHON_SQLITE),y)
81
PYTHON_DEPENDENCIES += sqlite
82
else
83
PYTHON_CONF_OPTS += --disable-sqlite3
84
endif
85
​
86
ifeq ($(BR2_PACKAGE_PYTHON_SSL),y)
87
PYTHON_DEPENDENCIES += openssl
88
else
89
PYTHON_CONF_OPTS += --disable-ssl
90
endif
91
​
92
ifneq ($(BR2_PACKAGE_PYTHON_CODECSCJK),y)
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.