[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor-messenger-build/master] Revert "Don't build python: the Wheezy version is recent enough"
commit 3cee591f3c856db3938cac009c4ad7dcba1f51c8
Author: Nicolas Vigier <boklm@xxxxxxxxxxxxxx>
Date: Sat Sep 12 10:10:36 2015 +0200
Revert "Don't build python: the Wheezy version is recent enough"
This reverts commit ef0675501bf8e2aae082e009b4cedb50a4f1e325.
We are going back to using Ubuntu lucid for Linux builds.
---
projects/instantbird/build | 2 ++
projects/instantbird/config | 3 +++
projects/python/build | 15 +++++++++++++++
projects/python/config | 22 ++++++++++++++++++++++
4 files changed, 42 insertions(+)
diff --git a/projects/instantbird/build b/projects/instantbird/build
index 7870dd6..a422cce 100644
--- a/projects/instantbird/build
+++ b/projects/instantbird/build
@@ -11,6 +11,8 @@ ln -s /var/tmp/dist/gcc/bin/gcc /var/tmp/dist/gcc/bin/cc
mkdir -p /var/tmp/dist
cd /var/tmp/dist
[% IF c("var/linux") -%]
+tar xf $rootdir/[% c('input_files_by_name/python') %]
+export PATH="/var/tmp/dist/python/bin:$PATH"
tar xf $rootdir/[% c('input_files_by_name/binutils') %]
export PATH="/var/tmp/dist/binutils/bin:$PATH"
[% END -%]
diff --git a/projects/instantbird/config b/projects/instantbird/config
index 5681e6f..e64a674 100644
--- a/projects/instantbird/config
+++ b/projects/instantbird/config
@@ -125,6 +125,9 @@ input_files:
enable: '[% c("var/osx") %]'
- filename: 'mozconfig-[% c("var/osname") %]'
name: mozconfig
+ - name: python
+ project: python
+ enable: '[% c("var/linux") %]'
- name: binutils
project: binutils
enable: '[% c("var/linux") %]'
diff --git a/projects/python/build b/projects/python/build
new file mode 100644
index 0000000..e27d06a
--- /dev/null
+++ b/projects/python/build
@@ -0,0 +1,15 @@
+#!/bin/bash
+set -e
+rootdir=$(pwd)
+distdir=/var/tmp/dist/python
+mkdir -p $distdir
+tar xf [% c('input_files_by_name/python') %]
+cd Python-[% c('version') %]
+./configure --prefix=$distdir
+make -j4
+make prefix=$distdir install
+cd /var/tmp/dist
+[% c('tar', {
+ tar_src => 'python',
+ tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
+ }) %]
diff --git a/projects/python/config b/projects/python/config
new file mode 100644
index 0000000..9c21725
--- /dev/null
+++ b/projects/python/config
@@ -0,0 +1,22 @@
+# vim: filetype=yaml sw=2
+version: 2.7.8
+filename: 'python-[% c("lsb_release/id") %]-[% c("lsb_release/codename") %]-[% c("var/build_id") %].tar.gz'
+lsb_release:
+ id: Debian
+ release: 7.8
+ codename: wheezy
+remote_docker: 1
+var:
+ deps:
+ - xz-utils
+ - build-essential
+ - python-all
+ - zlib1g-dev
+ - libssl-dev
+input_files:
+ - name: python
+ URL: 'https://www.python.org/ftp/python/[% c("version") %]/Python-[% c("version") %].tar.xz'
+ gpg_keyring: python.gpg
+ sig_ext: asc
+ file_gpg_id: 1
+ - project: docker-image
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits