Skip to content

Commit c590558

Browse files
committed
python_modules-43
0 parents  commit c590558

File tree

16,903 files changed

+4389752
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

16,903 files changed

+4389752
-0
lines changed

2.6.inc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
MODULES = \
2+
setuptools-0.6c12dev-r88846 \
3+
altgraph-0.10.1 \
4+
modulegraph-0.10.1 \
5+
macholib-1.5 \
6+
bdist_mpkg-0.4.4 \
7+
py2app-0.7.1 \
8+
numpy-1.6.2 \
9+
xattr-0.6.4 \
10+
bonjour-py-0.3 \
11+
scipy-0.11.0 \
12+
pytz-2012d \
13+
python-dateutil-1.5 \
14+
matplotlib-1.1.1 \
15+
pyOpenSSL-0.13.1

2.7.inc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
MODULES = \
2+
setuptools-18.5 \
3+
altgraph-0.10.2 \
4+
modulegraph-0.10.4 \
5+
macholib-1.5.1 \
6+
bdist_mpkg-0.5.0 \
7+
py2app-0.7.3 \
8+
numpy-1.8.0rc1 \
9+
xattr-0.6.4 \
10+
bonjour-py-0.3 \
11+
scipy-0.13.0b1 \
12+
pytz-2013.7 \
13+
six-1.4.1 \
14+
python-dateutil-1.5 \
15+
pyparsing-2.0.1 \
16+
matplotlib-1.3.1 \
17+
pyOpenSSL-0.13.1

GNUmakefile

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
##---------------------------------------------------------------------
2+
# Makefile for python_modules (supporting multiple versions)
3+
##---------------------------------------------------------------------
4+
Project = python_modules
5+
PYTHONPROJECT = python
6+
MYFIX = $(SRCROOT)/fix
7+
_VERSIONERDIR := /usr/local/versioner
8+
# Look for /usr/local/versioner in $(SDKROOT), defaulting to /usr/local/versioner
9+
VERSIONERDIR := $(or $(wildcard $(SDKROOT)$(_VERSIONERDIR)),$(_VERSIONERDIR))
10+
PYTHONVERSIONS = $(VERSIONERDIR)/$(PYTHONPROJECT)/versions
11+
INCOMPATIBLE =
12+
DEFAULT := $(shell sed -n '/^DEFAULT = /s///p' $(PYTHONVERSIONS))
13+
KNOWNVERSIONS := $(filter-out $(INCOMPATIBLE), $(shell grep '^[0-9]' $(PYTHONVERSIONS)))
14+
BOOTSTRAPPYTHON =
15+
VERSIONS = $(sort $(KNOWNVERSIONS) $(BOOTSTRAPPYTHON))
16+
ORDEREDVERS := $(DEFAULT) $(filter-out $(DEFAULT),$(VERSIONS))
17+
VERSIONERFLAGS = -std=gnu99 -Wall -mdynamic-no-pic -I$(VERSIONERDIR)/$(PYTHONPROJECT) -I$(MYFIX) -framework CoreFoundation
18+
OSV = OpenSourceVersions
19+
OSL = OpenSourceLicenses
20+
21+
FIX = $(VERSIONERDIR)/$(PYTHONPROJECT)/fix
22+
TESTOK := -f $(shell echo $(foreach vers,$(VERSIONS),$(OBJROOT)/$(vers)/.ok) | sed 's/ / -a -f /g')
23+
TMPPREFIX = $(OBJROOT)/Root
24+
25+
include $(MAKEFILEPATH)/CoreOS/ReleaseControl/Common.make
26+
27+
installsrc: afterinstallsrc
28+
29+
afterinstallsrc:
30+
for i in $(SRCROOT)/Modules/*; do \
31+
[ ! -d $$i ] || $(MAKE) -C $$i afterinstallsrc Project=$(Project) || exit 1; \
32+
done
33+
$(MAKE) -C $(SRCROOT)/tmpprefix afterinstallsrc
34+
35+
build::
36+
$(MKDIR) $(OBJROOT)/$(OSL)
37+
$(MKDIR) $(OBJROOT)/$(OSV)
38+
$(MAKE) -C tmpprefix \
39+
OSL='$(OBJROOT)/$(OSL)' OSV='$(OBJROOT)/$(OSV)' \
40+
TMPPREFIX='$(TMPPREFIX)'
41+
@set -x && \
42+
for vers in $(VERSIONS); do \
43+
mkdir -p "$(SYMROOT)/$$vers" && \
44+
mkdir -p "$(OBJROOT)/$$vers/DSTROOT" || exit 1; \
45+
(echo "######## Building $$vers:" `date` '########' > "$(SYMROOT)/$$vers/LOG" 2>&1 && \
46+
PATH="$(TMPPREFIX)/bin:$$PATH" \
47+
VERSIONER_PYTHON_VERSION=$$vers \
48+
VERSIONER_PYTHON_PREFER_32_BIT=yes \
49+
$(MAKE) -f Makefile install Project=$(Project) \
50+
OBJROOT="$(OBJROOT)/$$vers" \
51+
DSTROOT="$(OBJROOT)/$$vers/DSTROOT" \
52+
SYMROOT="$(SYMROOT)/$$vers" \
53+
OSL='$(OBJROOT)/$(OSL)' OSV='$(OBJROOT)/$(OSV)' \
54+
TMPPREFIX='$(TMPPREFIX)' \
55+
RC_ARCHS='$(RC_ARCHS)' >> "$(SYMROOT)/$$vers/LOG" 2>&1 && \
56+
touch "$(OBJROOT)/$$vers/.ok" && \
57+
echo "######## Finished $$vers:" `date` '########' >> "$(SYMROOT)/$$vers/LOG" 2>&1 \
58+
) & \
59+
done && \
60+
wait && \
61+
for vers in $(VERSIONS); do \
62+
cat $(SYMROOT)/$$vers/LOG && \
63+
rm -f $(SYMROOT)/$$vers/LOG || exit 1; \
64+
done && \
65+
if [ $(TESTOK) ]; then \
66+
$(MAKE) merge; \
67+
else \
68+
echo '#### error detected, not merging'; \
69+
exit 1; \
70+
fi
71+
$(MKDIR) $(DSTROOT)/usr/local/$(OSL)
72+
@set -x && \
73+
cd $(OBJROOT)/$(OSL) && \
74+
for i in *; do \
75+
echo '##########' `basename $$i` '##########' && \
76+
cat $$i || exit 1; \
77+
done > $(DSTROOT)/usr/local/$(OSL)/$(Project).txt
78+
$(MKDIR) $(DSTROOT)/usr/local/$(OSV)
79+
(cd $(OBJROOT)/$(OSV) && \
80+
echo '<plist version="1.0">' && \
81+
echo '<array>' && \
82+
cat * && \
83+
echo '</array>' && \
84+
echo '</plist>') > $(DSTROOT)/usr/local/$(OSV)/$(Project).plist
85+
86+
#merge: mergebegin mergedefault mergeversions mergebin mergeman
87+
merge: mergebegin mergeversions mergebin mergeman
88+
89+
mergebegin:
90+
@echo ####### Merging #######
91+
92+
MERGEBIN = /usr/bin
93+
DUMMY = dummy.py
94+
mergebin:
95+
mkdir -p $(DSTROOT)$(MERGEBIN)
96+
install $(FIX)/$(DUMMY) $(DSTROOT)$(MERGEBIN)
97+
@set -x && \
98+
for vers in $(ORDEREDVERS); do \
99+
cd $(OBJROOT)/$$vers/DSTROOT$(MERGEBIN) && \
100+
for f in `find . -type f ! -name "*$$vers*" | sed 's,^\./,,'`; do \
101+
fv=$$f-$$vers && \
102+
ditto $$f $(DSTROOT)$(MERGEBIN)/$$fv && \
103+
sed -e 's/@SEP@/-/g' -e "s/@VERSION@/$$vers/g" $(FIX)/scriptvers.ed | ed - $(DSTROOT)$(MERGEBIN)/$$fv && \
104+
if [ ! -e $(DSTROOT)$(MERGEBIN)/$$f ]; then \
105+
ln -f $(DSTROOT)$(MERGEBIN)/$(DUMMY) $(DSTROOT)$(MERGEBIN)/$$f; \
106+
fi || exit 1; \
107+
done && \
108+
cd $(DSTROOT)/System/Library/Frameworks/Python.framework/Versions/$$vers/Extras/bin && \
109+
for f in *; do \
110+
sed -e '/^1a/,/^\./d' -e "s/@VERSION@/$$vers/g" $(FIX)/scriptvers.ed | ed - $$f || exit 1; \
111+
done || exit 1; \
112+
done
113+
rm -f $(DSTROOT)$(MERGEBIN)/$(DUMMY)
114+
115+
MERGEVERSIONS = \
116+
System
117+
mergeversions:
118+
@set -x && \
119+
for vers in $(VERSIONS); do \
120+
cd $(OBJROOT)/$$vers/DSTROOT && \
121+
rsync -Ra $(MERGEVERSIONS) $(DSTROOT) || exit 1; \
122+
done
123+
124+
MERGEMAN = usr/share/man
125+
mergeman:
126+
cd $(OBJROOT)/$(DEFAULT)/DSTROOT && rsync -Ra $(MERGEMAN) $(DSTROOT)

Makefile

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Makefile orchestrating python_modules
2+
3+
include $(VERSIONER_PYTHON_VERSION).inc
4+
5+
EXTRAS = $(shell python -c "import sys, os;print(os.path.join(sys.prefix, 'Extras'))")
6+
EXTRASPYTHON = $(EXTRAS)/lib/python
7+
8+
make := $(SRCROOT)/make.pl
9+
export PYTHONPATH := $(DSTROOT)$(EXTRASPYTHON)
10+
ifeq ($(DEBUG),YES)
11+
export DISTUTILS_DEBUG := YES
12+
endif
13+
14+
no_target:
15+
echo 'specify target install, installsrc, installhdrs, clean'
16+
false
17+
18+
install:
19+
@set -x && for i in $(MODULES); do \
20+
echo ===== Installing $$i ===== && \
21+
$(make) -C Modules/$$i install \
22+
EXTRAS="$(EXTRAS)" EXTRASPYTHON="$(EXTRASPYTHON)" \
23+
OSL='$(OSL)' OSV='$(OSV)' \
24+
|| exit 1; \
25+
done
26+
@echo ===== Stripping binaries =====
27+
set -x && cd $(DSTROOT)$(EXTRASPYTHON) && \
28+
for i in `find . -name \*.so | sed 's,^\./,,'`; do \
29+
rsync -R $$i $(SYMROOT) && \
30+
strip -x $$i || exit 1; \
31+
done
32+
@echo ===== Fixing empty files =====
33+
@set -x && \
34+
for i in `find $(DSTROOT)$(EXTRASPYTHON) -name __init__.py -size 0c`; do \
35+
echo '#' > $$i && \
36+
j=`echo $$i | sed 's,^$(DSTROOT),,'` && \
37+
python -c "from py_compile import compile;compile('$$i', dfile='$$j', doraise=True)" && \
38+
python -O -c "from py_compile import compile;compile('$$i', dfile='$$j', doraise=True)" || exit 1; \
39+
done
40+
for i in `find $(DSTROOT)$(EXTRASPYTHON) -name zip-safe -size 0c`; do \
41+
echo > $$i || exit 1; \
42+
done
43+
44+
installhdrs:
45+
@echo $(Project) has no headers to install
46+
47+
installsrc:
48+
ditto . $(SRCROOT)
49+
50+
clean:

Modules/Makefile.inc

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This file is include in the sub-projects's Makefiles to inherit standard
2+
# build behavior. The sub-project's Makefiles need to define NAME and
3+
# VERSION. The custompatching target may by redefined to do any patching
4+
# just after files are unpacked from the tarball. The postinstall target
5+
# may be redefined to do any post install processing.
6+
7+
NAMEVERSION := $(NAME)-$(VERSION)
8+
TARBALL := $(NAMEVERSION).tar.gz
9+
DIR := $(OBJROOT)/$(NAMEVERSION)
10+
11+
$(DIR):
12+
gnutar xozf $(TARBALL) -C $(OBJROOT)
13+
14+
afterinstallsrc::
15+
@echo "# $(NAMEVERSION): afterinstallsrc"
16+
17+
install: realinstall postinstall
18+
19+
realinstall: $(DIR) custompatching
20+
cd $(DIR) && \
21+
ARCHFLAGS="$(RC_CFLAGS)" \
22+
python setup.py install --home="$(EXTRAS)" --root="$(DSTROOT)" $(SETUPARGS)
23+
24+
# allow custom patching before running setup.py
25+
custompatching:
26+
27+
# allow post install customization
28+
postinstall:
29+
30+
# whether to avoid 64-bit compiles
31+
no64:
32+
ifeq ($(NO64),YES)
33+
@echo YES
34+
else
35+
@echo NO
36+
endif

Modules/altgraph-0.10.1/MIT.license

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Permission is hereby granted, free of charge, to any person obtaining
2+
a copy of this software and associated documentation files (the
3+
"Software"), to deal in the Software without restriction, including
4+
without limitation the rights to use, copy, modify, merge, publish,
5+
distribute, sublicense, and/or sell copies of the Software, and to
6+
permit persons to whom the Software is furnished to do so, subject
7+
to the following conditions:
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
10+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
11+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
12+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
13+
ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
14+
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
15+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Modules/altgraph-0.10.1/Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
NAME = altgraph
2+
VERSION = 0.10.1
3+
4+
include ../Makefile.inc
5+
6+
postinstall:
7+
cp -f MIT.license $(OSL)/$(NAME)-$(VERSION).txt
8+
cp -f $(NAME).partial $(OSV)/$(NAME)-$(VERSION).partial
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
include ReadMe.txt
2+
include *.txt MANIFEST.in *.py
3+
graft doc
4+
graft doc/_static
5+
graft doc/_templates
6+
graft altgraph_tests
7+
global-exclude .DS_Store
8+
global-exclude *.pyc
9+
global-exclude *.so

0 commit comments

Comments
 (0)