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
933ac9b2
Commit
933ac9b2
authored
Jan 16, 2018
by
Damian Montero
Committed by
GitHub
Jan 16, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1428 from uberhacker/update-python3-package
Update python3 from 3.6.0 to 3.6.4
parents
e0551725
08bfb8c2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
19 deletions
+11
-19
packages/python3.rb
packages/python3.rb
+11
-19
No files found.
packages/python3.rb
View file @
933ac9b2
...
...
@@ -3,21 +3,13 @@ require 'package'
class
Python3
<
Package
description
'Python is a programming language that lets you work quickly and integrate systems more effectively.'
homepage
'https://www.python.org/'
version
'3.6.
0
'
source_url
'https://www.python.org/ftp/python/3.6.
0/Python-3.6.0.tg
z'
source_sha256
'
aa472515800d25a3739833f76ca3735d9f4b2fe77c3cb21f69275e0cce30cb2b
'
version
'3.6.
4
'
source_url
'https://www.python.org/ftp/python/3.6.
4/Python-3.6.4.tar.x
z'
source_sha256
'
159b932bf56aeaa76fd66e7420522d8c8853d486b8567c459b84fe2ed13bcaba
'
binary_url
({
aarch64:
'https://dl.bintray.com/chromebrew/chromebrew/python3-3.6.0-chromeos-armv7l.tar.xz'
,
armv7l:
'https://dl.bintray.com/chromebrew/chromebrew/python3-3.6.0-chromeos-armv7l.tar.xz'
,
i686:
'https://dl.bintray.com/chromebrew/chromebrew/python3-3.6.0-chromeos-i686.tar.xz'
,
x86_64:
'https://dl.bintray.com/chromebrew/chromebrew/python3-3.6.0-chromeos-x86_64.tar.xz'
,
})
binary_sha256
({
aarch64:
'69cd539510eaaf0dfbf101dbb8ee3b1f15985f948887ec9bc5158544fd37994f'
,
armv7l:
'69cd539510eaaf0dfbf101dbb8ee3b1f15985f948887ec9bc5158544fd37994f'
,
i686:
'69e79202b30ed23640619c2cc425d92df6e638b9cfb502e939fd33eb2c359d36'
,
x86_64:
'c50473d6a3d1b2e7c28943967549e08d61bc49e702469fb6509ef2191fc756f4'
,
})
depends_on
'bz2'
=>
:build
...
...
@@ -29,9 +21,9 @@ class Python3 < Package
def
self
.
build
# python requires to use /usr/local/lib, so leave as is but specify -rpath
system
"./configure"
,
"CPPFLAGS=-I
/usr/local/include/ncurses -I/usr/local
/include/ncursesw"
,
"LDFLAGS=-Wl,-rpath,
#{
CREW_PREFIX
}
/lib
"
,
"--with-ensurepip=
install
"
,
"--enable-shared"
system
"./configure"
,
"CPPFLAGS=-I
#{
CREW_PREFIX
}
/include/ncurses -I
#{
CREW_PREFIX
}
/include/ncursesw"
,
"LDFLAGS=-Wl,-rpath,
-L
#{
CREW_LIB_PREFIX
}
"
,
"--with-ensurepip=
#{
ARGV
[
0
]
}
"
,
"--enable-shared"
system
"make"
end
...
...
@@ -39,12 +31,12 @@ class Python3 < Package
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
# remove static library
system
"find
#{
CREW_DEST_
DIR
}
/usr/local
-name 'libpython*.a' -print | xargs -r rm"
system
"find
#{
CREW_DEST_
PREFIX
}
-name 'libpython*.a' -print | xargs -r rm"
# create symbolic links in lib64 for other applications which use libpython
unless
Dir
.
exist?
"
#{
CREW_DEST_
DIR
}#{
CREW_
LIB_PREFIX
}
"
system
"mkdir -p
#{
CREW_DEST_
DIR
}#{
CREW_
LIB_PREFIX
}
"
system
"cd
#{
CREW_DEST_
DIR
}#{
CREW_
LIB_PREFIX
}
; ln -s ../lib/libpython*.so* ."
unless
Dir
.
exist?
"
#{
CREW_DEST_LIB_PREFIX
}
"
system
"mkdir -p
#{
CREW_DEST_LIB_PREFIX
}
"
system
"cd
#{
CREW_DEST_LIB_PREFIX
}
; ln -s ../lib/libpython*.so* ."
end
end
...
...
@@ -70,6 +62,6 @@ class Python3 < Package
# Using /tmp breaks test_distutils, test_subprocess
# Proxy setting breaks test_httpservers, test_ssl,
# test_urllib, test_urllib2, test_urllib2_localnet
system
"TMPDIR=
/usr/local
/tmp http_proxy= https_proxy= ftp_proxy= make test"
system
"TMPDIR=
#{
CREW_PREFIX
}
/tmp http_proxy= https_proxy= ftp_proxy= make test"
end
end
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