Initial commit - python v3.7.0

This commit is contained in:
dave 2018-10-18 22:07:44 -07:00
commit 4cf8c4b911
11 changed files with 78 additions and 0 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
cpython

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "cpython"]
path = cpython
url = https://github.com/python/cpython.git

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM ubuntu:bionic
RUN sed -i -E 's/(archive|security).ubuntu.com/192.168.1.142/' /etc/apt/sources.list && \
sed -i -E 's/^deb-src/# deb-src/' /etc/apt/sources.list
RUN apt-get update && \
apt-get install -y dpkg-dev debhelper && \
useradd builder && \
install -d /target -o builder -g builder
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev \
libreadline-dev libsqlite3-dev libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev tk-dev libffi-dev

18
Makefile Normal file
View File

@ -0,0 +1,18 @@
#!/usr/bin/make -f
PY3_SRC=./cpython/
PY3_CONFFLAGS=--prefix=$(DESTDIR)/opt/extpython/3.7.0 --with-ensurepip=install
all:
cd $(PY3_SRC) && \
./configure $(PY3_CONFFLAGS) && \
make -j8
install:
cd $(PY3_SRC) && \
make install
# $(DESTDIR)/opt/extpython/3.7.0/bin/python3 $(DESTDIR)/opt/extpython/3.7.0/bin/pip3 install -r requirements.txt
clean:
cd $(PY3_SRC) && \
make clean || true

11
build-inner.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
# export PATH=$PATH:/usr/bin
time dpkg-buildpackage -us -uc -b
ls -la ../
mkdir -p ./out
mv ../*.buildinfo ../*.changes ../*.deb

3
build.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
sudo docker run -it --rm --workdir=/target/src -v $PWD:/target/src extbuilder ./build-inner.sh

1
cpython Submodule

@ -0,0 +1 @@
Subproject commit 1bf9cc509326bc42cd8cb1650eb9bf64550d817e

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
extpython-python3.7 (3.7.0) unstable; urgency=low
* Initial release
-- Dave Pedu <dave@davepedu.com> Wed, 17 OPct 2018 22:08:15 -0800

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
9

13
debian/control vendored Normal file
View File

@ -0,0 +1,13 @@
Source: extpython-python3.7
Section: unknown
Priority: optional
Maintainer: ubuntu <ubuntu@unknown>
Build-Depends: debhelper (>= 8.0.0)
Standards-Version: 3.9.4
Homepage: <insert the upstream URL, if relevant>
Package: extpython-python3.7
Architecture: amd64
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: <insert up to 60 chars description>
<insert long description, indented with spaces>

10
debian/rules vendored Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/make -f
# -*- makefile -*-
export DH_VERBOSE=1
override_dh_usrlocal:
override_dh_strip:
%:
dh $@