File: Makefile

package info (click to toggle)
ipython 8.35.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,696 kB
  • sloc: python: 42,461; sh: 376; makefile: 243
file content (130 lines) | stat: -rw-r--r-- 3,238 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# Simple makefile to rapidly deploy IPython with all its dependencies.

# Configuration section.  The version numbers and paths declared here may
# change with each release.

# IPython version
IPYTHON_VER=0.9.1

# Declare here version numbers of all the dependencies
PYOPENSSL_VER=0.6
ZOPE_INTERFACE_VER=3.4.1
TWISTED_VER=8.1.0
FOOLSCAP_VER=0.3.1
NOSE_VER=0.10.3

# Repository URLs for all packages.  Make sure these are correct for each
# release, since projects may change paths!
IPYTHON_REPO=http://ipython.scipy.org/dist
PYOPENSSL_REPO=http://downloads.sourceforge.net/pyopenssl
ZOPE_INTERFACE_REPO=http://pypi.python.org/packages/source/z/zope.interface
TWISTED_REPO=http://tmrc.mit.edu/mirror/twisted/Twisted/8.1
FOOLSCAP_REPO=http://foolscap.lothar.com/releases
NOSE_REPO=http://somethingaboutorange.com/mrl/projects/nose

#-----------------------------------------------------------------------------
# Main code begins.  There shouldn't be much to change here with each release.
#

# Hand-written files to ship in self-contained tarball
SOURCES=pkginstall pkginstall.cfg Makefile README.txt README.html

# Versions of tarballs we ship
IPYTHON=ipython-$(IPYTHON_VER).tar.gz
IP_ALLDEPS=ipython-alldeps-$(IPYTHON_VER)

PYOPENSSL=pyOpenSSL-$(PYOPENSSL_VER).tar.gz
ZOPE_INTERFACE=zope.interface-$(ZOPE_INTERFACE_VER).tar.gz
NOSE=nose-$(NOSE_VER).tar.gz
TWISTED=Twisted-$(TWISTED_VER).tar.bz2
FOOLSCAP=foolscap-$(FOOLSCAP_VER).tar.gz

TARBALLS=$(PYOPENSSL) $(ZOPE_INTERFACE) $(TWISTED) $(FOOLSCAP) \
$(NOSE) $(IPYTHON)

# URLs for downloads

#-----------------------------------------------------------------------------
# Target declaration
#

# Targets to install, in correct dependency order
install: pyopenssl zope.interface twisted foolscap nose ipython
	echo
	echo "IPython Installation finished."
	echo "You can now run the ipython test suite by running:"
	echo "iptest"
	echo "If all tests pass, you can delete this entire directory."
	echo

# Download targets
download: $(TARBALLS)

$(IPYTHON):
	wget $(IPYTHON_REPO)/$(IPYTHON)

$(PYOPENSSL):
	wget $(PYOPENSSL_REPO)/$(PYOPENSSL)

$(ZOPE_INTERFACE):
	wget $(ZOPE_INTERFACE_REPO)/$(ZOPE_INTERFACE)

$(TWISTED):
	wget $(TWISTED_REPO)/$(TWISTED)

$(FOOLSCAP):
	wget $(FOOLSCAP_REPO)/$(FOOLSCAP)

$(NOSE):
	wget $(NOSE_REPO)/$(NOSE)


# The calls to pkginstall must use the actual Python package name
nose: $(NOSE)
	./pkginstall nose

zope.interface: $(ZOPE_INTERFACE)
	./pkginstall zope.interface zope

pyopenssl: $(PYOPENSSL)
	./pkginstall pyOpenSSL OpenSSL

twisted: $(TWISTED)
	./pkginstall Twisted

foolscap: $(FOOLSCAP)
	./pkginstall foolscap

ipython: $(IPYTHON)
	./pkginstall ipython IPython

# Distribution targets
dist: $(IP_ALLDEPS).tar

$(IP_ALLDEPS).tar: download readme
	-mkdir $(IP_ALLDEPS)
	-ln $(SOURCES) $(TARBALLS) $(IP_ALLDEPS)/
	tar cf $(IP_ALLDEPS).tar $(IP_ALLDEPS)
	rm -rf $(IP_ALLDEPS)

readme: README.html

README.html: README.txt
	rst2html README.txt > README.html

# Auxiliary targets
upload: dist
	rsync -e ssh -av README.html $(IP_ALLDEPS).tar \
	ipython@ipython.scipy.org:www/dist/alldeps

clean:
	ls -p | grep /$ | xargs rm -rf
	rm -f $(IP_ALLDEPS)* *~

distclean: clean
	rm -f $(TARBALLS)
	rm README.html

info:
	echo "TARBALLS"
	echo $(TARBALLS)