Commit Graph

52 Commits

Author SHA1 Message Date
Peter Korsgaard
5a7192b253 host-python: enable expat support
Some packages (like libxcb) need xml support in host-python in order to
build (.py file tries to import xml.etree.cElementTree).

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-01-27 23:37:22 +01:00
Thomas Petazzoni
e3418f69cf python: convert to autotargets, bump to 2.7.1, many improvements
This commit does a number of changes and improvements to the Python
interpreter package :

 * It converts the .mk file to the AUTOTARGETS infrastructure. Even
   though Python uses only autoconf and not automake, the AUTOTARGETS
   is a fairly good fit for the Python interpreter, so we make use of
   it.

 * It bumps the version to 2.7.1. As this is a minor release compared
   to 2.7, there are no particular changes needed because of this
   bump. All changes done to the package are cleanups and improvements
   unrelated to the version bump.

 * It uses the system libffi. Until now, Python was building its own
   libffi (a library used by interprets to build code that makes
   function call at runtime). Using the Python internal libffi was not
   working as Python was not passing the appropriate arguments down to
   libffi ./configure script. And it sounded better to use a
   system-wide libffi, that could potentially be used by other
   packages as well. This libffi is needed for the ctypes Python
   module.

 * Remove all "depends on BR2_PACKAGE_PYTHON" by moving all
   Python-related options under a "if BR2_PACKAGE_PYTHON ... endif"
   condition.

 * Make the installation of pre-compiled Python modules (.pyc) the
   default, since they are smaller and do not need to be compiled on
   the target. It is still possible to install uncompiled modules, or
   both the uncompiled and pre-compiled versions.

 * The options to select the set of Python modules to compile has been
   moved to a submenu.

 * The codecscjk (Japanese, Korean and Chinese codecs) module is no
   longer enabled by default.

 * The commented options for gdbm and nis in Python have been
   removed. Those were not supported, so let's get rid of unused code.

 * The option for the tkinker module in Python has been removed, since
   we don't have a package for Tk in Buildroot.

 * Options for the bzip2, sqlite and zlib modules have been added,
   since those modules have external dependencies.

 * The set of patches has been completely reworked and extended, with
   more fine-grained patches and newer functionalities. The patches
   are split in two categories:

    - Patches that make various modifications to the Python build
      system to support cross-compilation or make some minor
      modifications. Those patches are numbered from 0 to 100.

    - Patches that add configuration options to the Python build
      system in order to enable/disable the compilation of Python
      extensions or modules (test modules, pydoc, lib2to3, sqlite, tk,
      curses, expat, codecs-cjk, nis, unicodedata, database modules,
      ssl, bzip2, zlib). These patches are numbered from 100 to 200.

   All features of the previous four patches are preserved, but they
   are organized differently and the patches have been renamed. This
   makes it difficult to see the differences from the existing
   patches.

 * The host Python interpreter is now installed in $(HOST_DIR), since
   it is used to build third party Python modules.

 * The BR2_PACKAGE_PYTHON_DEV option is removed since
   BR2_HAVE_DEVFILES already does the necessary work.

 * The "make -i install" workaround introduced by Maxime Ripard is no
   longer needed. It was caused by the compilation of the tests that
   required the unicodedata module (which wasn't built in the host
   Python interpreter). Since we no longer compile the Python tests,
   the problem doesn't exist anymore and we can avoid this "-i"
   option.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2011-01-25 08:59:57 +01:00
Maxime Ripard
05ac95e04d python: Fix make install (Workaround python's bug #1669349)
Signed-off-by: Maxime Ripard <ripard@archos.com>
2011-01-25 08:56:20 +01:00
Maxime Ripard
10e1927e1a python: Add the needed patches to compile python2.7 in buildroot.
Signed-off-by: Maxime Ripard <ripard@archos.com>
2011-01-25 08:56:20 +01:00
Maxime Ripard
d82df10e90 python: Port the python2.4 patches to 2.7
Signed-off-by: Maxime Ripard <ripard@archos.com>
2011-01-25 08:56:20 +01:00
Maxime Ripard
afe54f1008 python: Move to version 2.7
Signed-off-by: Maxime Ripard <ripard@archos.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2011-01-25 08:56:20 +01:00
Thomas Petazzoni
a1c8fa41f6 Update all packages to quote $(TARGET_CC)
Now that TARGET_CC contains several space-separated words, it must be
used quoted everywhere.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-07-07 08:20:21 +02:00
Peter Korsgaard
7b3a6f0aab python: needs WCHAR support in toolchain
And hence, portage needs it as well.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-04-19 14:38:45 +02:00
Peter Korsgaard
a7c5ee544e python: cleanup
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2009-10-02 10:24:54 +02:00
Peter Korsgaard
3fdf0bffb8 buildroot: silence ./configure step when building with 'make -s'
We have been passing -q to ./configure when using 'make -s' for
packages using Makefile.autotools.in for some time. Do the same
for packages using autotools, but not using the
Makefile.autotools.in infrastructure, taking care to not do it
for packages with hand written configure scripts.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2009-10-01 21:24:42 +02:00
Will Newton
0c2b9a4a2d python: Don't delete .py files unless asked.
If we have set BR2_PACKAGE_PYTHON_PY_ONLY or BR2_PACKAGE_PYTHON_PY_PYC
we want .py files to be left on the target, whatever the value of
BR2_PACKAGE_PYTHON_DEV.

Signed-off-by: Will Newton <will.newton@gmail.com>
2009-09-20 19:34:48 +01:00
Will Newton
422ce6536b package: Remove unnecessary dependencies on uclibc.
A C library will have been built by the toolchain makefiles, so there is no
need for packages to explicitly depend on uclibc.

Signed-off-by: Will Newton <will.newton@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2009-09-03 20:22:38 +02:00
Peter Korsgaard
f9af543a25 python: disable extensions where we don't have the deps in BR
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2009-05-27 07:07:36 +02:00
Peter Korsgaard
8afc339757 python: fix kconfig dependencies for extension modules
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2009-05-27 07:02:57 +02:00
Peter Korsgaard
ebf47824cc readline: remove BR2_PACKAGE_READLINE_TARGET configuration option
Other packages don't have this, and several packages are depending on
readline where they actually want readline-target instead.
2009-01-30 09:50:13 +00:00
Ulf Samuelsson
03e3b81d4c Make alsa-lib depend on libpython, if new BR2_PACKAGE_ALSA_LIB_PYTHON is selected 2009-01-17 00:19:06 +00:00
Peter Korsgaard
4a7bfd2775 package/: convert to DOWNLOAD helper 2009-01-16 11:42:52 +00:00
Ulf Samuelsson
49d32869e0 Always create shared python library, if python is created, needed by multiple packages 2009-01-15 06:28:05 +00:00
Ulf Samuelsson
9e15c00a04 Change name from PYTHON_VERSION_SHORT to PYTHON_VERSION_MAJOR 2009-01-11 20:15:35 +00:00
Peter Korsgaard
ac1d92c425 package/: get rid of unneeded $(strip ..) 2008-12-08 08:15:27 +00:00
Wade Berrier
d3f742f98a python: add $(STAGING_DIR)/usr/lib to PYTHON_MODULES_LIB so that
modules build correctly (particularly readline)
2008-10-30 17:21:18 +00:00
Hamish Moffatt
433a26a515 Rename patches to include Python 2.4 version, in preparation for adding 2.5 2008-10-08 05:02:59 +00:00
Hamish Moffatt
542e7ae3a6 Export site package directory location for use by other packages 2008-09-11 01:59:04 +00:00
Hamish Moffatt
a94fefa316 Keep /usr/bin/python2.4 and make /usr/bin/python a link to it 2008-09-08 07:26:12 +00:00
Hamish Moffatt
0fbc9437e0 Update to Python 2.4.5 (latest patch rev of 2.4)
Remove the test suite before building, else it will fail to compile depending on what modules have been configured.
2008-09-02 00:54:49 +00:00
Peter Korsgaard
02a623ddf9 buildroot: remove trailing spaces
for i in `find -name 'Config*' -o -name 'Makefile*' -o -name '*.mk'`;
do
	sed -i 's/ \+$//' $i;
done
2008-08-04 19:07:05 +00:00
Peter Korsgaard
4683420c4c Kconfig: remove 'default n'
'default n' is the default, so there's no need to say it explicitly.
2008-07-17 20:01:44 +00:00
Peter Korsgaard
2b57bfa365 python: fix hostpython target.
Remove invalid hyphen in front of -$(MAKE) in the middle of a subshell

Patch by Conrad Parker.
2008-06-16 11:15:51 +00:00
Peter Korsgaard
dfe689229d buildroot: cleanup <package>-clean targets.
Based on input from Arndt Kritzner & Bernhard Fischer.
2008-03-27 15:42:42 +00:00
Hamish Moffatt
05ecb806ff Added configuration item to control whether development headers and libraries are installed on the target
Removed some additional files if optional modules are disabled
2008-02-06 00:55:05 +00:00
Ivan Kuten
c345534783 enhancements for the python package, patch by Hamish Moffatt 2008-01-17 12:42:53 +00:00
Bernhard Reutner-Fischer
6c6cb06709 - sed -i -e "/;$/s/;$//g" $(egrep ";$" package/* package/*/*.mk toolchain/* toolchain/*/*.mk */Makefile.in -l) 2007-08-21 19:20:18 +00:00
Ulf Samuelsson
a2e5113512 Use STAGING_DIR/usr/lib instead of STAGING_DIR/lib 2007-08-11 22:26:56 +00:00
Bernhard Reutner-Fischer
74d518dc2a - add endian handling, mmap, memcmp checks to TARGET_CONFIGURE_ARGS
- use TARGET_CONFIGURE_ARGS where appropriate.
2007-06-27 12:01:27 +00:00
Bernhard Reutner-Fischer
f203aaf7c0 - use BR2_INET_IPV6 2007-06-26 17:45:08 +00:00
Bernhard Reutner-Fischer
bef5b36b9e - fix breakage that got introduced by a malformed context diff. Sorry.. 2007-01-23 17:18:54 +00:00
Bernhard Reutner-Fischer
6440b9fd17 - fixup include- and libdirs. Closes #841
- rediff patches against 2.4.2
2007-01-22 18:48:48 +00:00
Bernhard Reutner-Fischer
b17c61938e - remove some hardcoded occurances of "make" and use the proper variable instead 2007-01-21 21:32:49 +00:00
Bernhard Reutner-Fischer
6e2823c1fa - add and use BR2_BZCAT config option. 2006-11-17 15:43:51 +00:00
Mike Frysinger
57b6a1007d ver bump 2005-11-10 02:52:42 +00:00
Mike Frysinger
7c64d3c23d update to python-2.4.1 with the help of open embedded 2005-08-13 02:45:34 +00:00
Mike Frysinger
ee69884eed dont use xargs 2005-08-03 23:21:37 +00:00
Eric Andersen
369864cf10 be a bit more consistant with naming, always escape wildcards 2005-06-24 08:36:13 +00:00
Eric Andersen
d06645d8ed There is no need to have a separate 'Makefile.in' file in the
general case, therefore, combine the toplevel Makefile options
such as setting TARGETS into the per-package *.mk file
2005-02-10 03:06:39 +00:00
Mike Frysinger
1eda52851f help text 2004-10-14 20:33:45 +00:00
Mike Frysinger
4e809df67f more updates for python 2004-10-12 00:06:48 +00:00
Eric Andersen
bb05a9ad46 Make the TAR_VERBOSITY option a bit more sane 2004-10-09 21:19:47 +00:00
Mike Frysinger
8458eb9441 prune a few more files 2004-10-09 19:48:32 +00:00
Mike Frysinger
3a7b488366 use $(TAR_VERBOSITY) 2004-10-09 19:05:40 +00:00
Eric Andersen
f694016136 final step in buildroot facelift 2004-10-09 06:13:40 +00:00