Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Yusei Tahara
slapos.buildout
Commits
50f7c89f
Commit
50f7c89f
authored
Aug 24, 2012
by
Domen Kožar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
travis-ci: another try
parent
6eafa381
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
11 deletions
+4
-11
Makefile
Makefile
+3
-11
buildout.cfg
buildout.cfg
+1
-0
No files found.
Makefile
View file @
50f7c89f
...
@@ -2,6 +2,8 @@ HERE = $(shell pwd)
...
@@ -2,6 +2,8 @@ HERE = $(shell pwd)
PYTHON_VER
?=
2.7
PYTHON_VER
?=
2.7
PYTHON_MINOR
?=
2.7.3
PYTHON_MINOR
?=
2.7.3
PYTHON_PATH
=
$(HERE)
/python
$(PYTHON_VER)
PYTHON_PATH
=
$(HERE)
/python
$(PYTHON_VER)
# see http://lipyrary.blogspot.com/2011/05/how-to-compile-python-on-ubuntu-1104.html
ARCH
=
$(
shell
dpkg-architecture
-qDEB_HOST_MULTIARCH
)
ifeq
($(PYTHON_VER),2.6)
ifeq
($(PYTHON_VER),2.6)
PYTHON_MINOR
=
2.6.8
PYTHON_MINOR
=
2.6.8
...
@@ -38,17 +40,7 @@ ifeq ($(PYTHON_VER),2.6)
...
@@ -38,17 +40,7 @@ ifeq ($(PYTHON_VER),2.6)
patch
-p0
< ../ssl.txt
patch
-p0
< ../ssl.txt
endif
endif
cd
$(PYTHON_PATH)
/
$(PYTHON_ARCHIVE)
&&
\
cd
$(PYTHON_PATH)
/
$(PYTHON_ARCHIVE)
&&
\
./configure
--prefix
$(PYTHON_PATH)
--with-zlib
=
/usr/include
--without-sqlite
>
/dev/null 2>&1
&&
\
./configure
LDFLAGS
=
"-L/usr/lib/
$(ARCH)
-L/lib/
$(ARCH)
"
--prefix
$(PYTHON_PATH)
&&
\
ifeq
(
$(PYTHON_VER)
,2.4
)
sed
-i
's@#zlib zlibmodule.c -I
$(prefix)
/include -L
$(exec_prefix)
@zlib zlibmodule.c -I
$(prefix)
/include -L
$(exec_prefix)
@'
"
$(PYTHON_PATH)
/
$(PYTHON_ARCHIVE)
/Modules/Setup"
sed
-i
'200i_socket socketmodule.c'
"
$(PYTHON_PATH)
/
$(PYTHON_ARCHIVE)
/Modules/Setup"
sed
-i
'202iSSL=/usr/lib/ssl _ssl _ssl.c -DUSE_SSL -I/usr/include/openssl -L/usr/lib/ssl -lssl -lcrypto'
"
$(PYTHON_PATH)
/
$(PYTHON_ARCHIVE)
/Modules/Setup"
endif
ifeq
($(PYTHON_VER),2.5)
sed
-i
'1ifrom __future__ import with_statement'
"
$(PYTHON_PATH)
/
$(PYTHON_ARCHIVE)
/setup.py"
sed
-i
'200i_socket socketmodule.c'
"
$(PYTHON_PATH)
/
$(PYTHON_ARCHIVE)
/Modules/Setup"
sed
-i
'202iSSL=/usr/lib/ssl _ssl _ssl.c -DUSE_SSL -I/usr/include/openssl -L/usr/lib/ssl -lssl -lcrypto'
"
$(PYTHON_PATH)
/
$(PYTHON_ARCHIVE)
/Modules/Setup"
endif
make
&&
\
make
&&
\
make
install
>
/dev/null 2>&1
make
install
>
/dev/null 2>&1
@
echo
"Finished installing Python"
@
echo
"Finished installing Python"
...
...
buildout.cfg
View file @
50f7c89f
...
@@ -37,3 +37,4 @@ defaults =
...
@@ -37,3 +37,4 @@ defaults =
[versions]
[versions]
zope.interface = 3.7.0
zope.interface = 3.7.0
zope.exceptions = 3.7.1
zope.exceptions = 3.7.1
zope.testrunner = 4.0.1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment