Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
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
nexedi
chromebrew
Commits
c473b1a9
Commit
c473b1a9
authored
7 years ago
by
lyxell
Committed by
GitHub
7 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #702 from jam7/update/python27
Change python27.rb to add check method and optimize for size
parents
6dede430
10a5cca4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
4 deletions
+26
-4
packages/python27.rb
packages/python27.rb
+26
-4
No files found.
packages/python27.rb
View file @
c473b1a9
...
@@ -3,20 +3,42 @@ require 'package'
...
@@ -3,20 +3,42 @@ require 'package'
class
Python27
<
Package
class
Python27
<
Package
description
'Python is a programming language that lets you work quickly and integrate systems more effectively.'
description
'Python is a programming language that lets you work quickly and integrate systems more effectively.'
homepage
'https://www.python.org/'
homepage
'https://www.python.org/'
version
'2.7.13-
1
'
version
'2.7.13-
2
'
source_url
'https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tar.xz'
source_url
'https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tar.xz'
source_sha1
'18a8f30a0356c751b8d0ea6f76e764cab13ee046'
source_sha1
'18a8f30a0356c751b8d0ea6f76e764cab13ee046'
depends_on
'bz2'
depends_on
'bz2'
=>
:build
depends_on
'ncurses'
depends_on
'ncurses'
depends_on
'openssl'
depends_on
'openssl'
=>
:build
depends_on
'sqlite'
=>
:build
depends_on
'gdbm'
=>
:build
def
self
.
build
def
self
.
build
system
"./configure
--prefix=/usr/local CPPFLAGS=
\"
-I/usr/local/include -I/usr/local/include/ncurses
\"
LDFLAGS=
\"
-L/usr/local/lib
\"
CFLAGS=
\"
-fPIC
\"
--with-ensurepip=install
"
system
"./configure
"
,
"CPPFLAGS=-I/usr/local/include/ncurses -I/usr/local/include/ncursesw"
,
"--with-ensurepip=install"
,
"--enable-shared
"
system
"make"
system
"make"
# strip debug symbols from library
system
"find . -name '*.so' -print | xargs strip -S"
unless
@@debug_symbol
end
end
def
self
.
install
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
# strip binary
system
"strip"
,
"
#{
CREW_DEST_DIR
}
/usr/local/bin/python2"
unless
@@debug_symbol
# remove static library
system
"find
#{
CREW_DEST_DIR
}
/usr/local -name 'libpython*.a' -print | xargs rm"
# remove cache (byte-code) files from install package
system
"find
#{
CREW_DEST_DIR
}
/usr/local -name '*.pyc' -o -name '*.pyo' | xargs rm"
end
def
self
.
check
# Using /tmp breaks test_distutils, test_subprocess.
# Proxy setting breaks test_httpservers, test_ssl,
# test_urllib, test_urllib2, test_urllib2_localnet.
# So, modifying environment variable to make pass tests.
system
"TMPDIR=/usr/local/tmp http_proxy= https_proxy= ftp_proxy= make test"
end
end
end
end
This diff is collapsed.
Click to expand it.
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