summaryrefslogtreecommitdiff
path: root/homebrew/python
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/python')
-rw-r--r--homebrew/python/.beer72
-rw-r--r--homebrew/python/.make.sh-auto16
-rw-r--r--homebrew/python/_metadata/description1
-rw-r--r--homebrew/python/_metadata/homepage1
-rw-r--r--homebrew/python/_metadata/name1
-rw-r--r--homebrew/python/_metadata/version1
-rwxr-xr-xhomebrew/python/download.sh1
7 files changed, 93 insertions, 0 deletions
diff --git a/homebrew/python/.beer b/homebrew/python/.beer
new file mode 100644
index 000000000..8a969cb50
--- /dev/null
+++ b/homebrew/python/.beer
@@ -0,0 +1,72 @@
+{
+ "name": "Python",
+ "description": "Interpreted, interactive, object-oriented programming language",
+ "url": "https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tar.xz",
+ "mirror": null,
+ "homepage": "https://www.python.org/",
+ "depends": [
+ {
+ "depend": "pkg-config",
+ "build-depend": true
+ },
+ {
+ "depend": "gdbm",
+ "build-depend": false
+ },
+ {
+ "depend": "openssl",
+ "build-depend": false
+ },
+ {
+ "depend": "readline",
+ "build-depend": false
+ },
+ {
+ "depend": "sqlite",
+ "build-depend": false
+ },
+ {
+ "depend": "xz",
+ "build-depend": false
+ }
+ ],
+ "resource": [
+ {
+ "name": "setuptools",
+ "url": "https://files.pythonhosted.org/packages/c2/f7/c7b501b783e5a74cf1768bc174ee4fb0a8a6ee5af6afa92274ff964703e0/setuptools-40.8.0.zip"
+ },
+ {
+ "name": "pip",
+ "url": "https://files.pythonhosted.org/packages/36/fa/51ca4d57392e2f69397cd6e5af23da2a8d37884a605f9e3f2d3bfdc48397/pip-19.0.3.tar.gz"
+ },
+ {
+ "name": "wheel",
+ "url": "https://files.pythonhosted.org/packages/b7/cf/1ea0f5b3ce55cacde1e84cdde6cee1ebaff51bd9a3e6c7ba4082199af6f6/wheel-0.33.1.tar.gz"
+ }
+ ],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "ENV.delete \"PYTHONPATH\"",
+ "xy = (prefix/\"Frameworks/Python.framework/Versions\").children.min.basename.to_s",
+ "site_packages = HOMEBREW_PREFIX/\"lib/python#{xy}/site-packages\"",
+ "site_packages_cellar = prefix/\"Frameworks/Python.framework/Versions/#{xy}/lib/python#{xy}/site-packages\"",
+ "site_packages.mkpath",
+ "site_packages_cellar.unlink if site_packages_cellar.exist?",
+ "site_packages_cellar.parent.install_symlink site_packages",
+ "rm_rf Dir[\"#{site_packages}/sitecustomize.py[co]\"]",
+ "(site_packages/\"sitecustomize.py\").atomic_write(sitecustomize)",
+ "rm_rf Dir[\"#{site_packages}/setuptools*\"]",
+ "rm_rf Dir[\"#{site_packages}/distribute*\"]",
+ "rm_rf Dir[\"#{site_packages}/pip[-_.][0-9]*\", \"#{site_packages}/pip\"]",
+ "%w[setuptools pip wheel].each do |pkg|",
+ "(libexec/pkg).cd do",
+ "system bin/\"python3\", \"-s\", \"setup.py\", \"--no-user-cfg\", \"install\",",
+ "\"--force\", \"--verbose\", \"--install-scripts=#{bin}\",",
+ "\"--install-lib=#{site_packages}\",",
+ "\"--single-version-externally-managed\",",
+ "\"--record=installed.txt\""
+ ],
+ "version": "3.7.3",
+ "file": "python.rb"
+} \ No newline at end of file
diff --git a/homebrew/python/.make.sh-auto b/homebrew/python/.make.sh-auto
new file mode 100644
index 000000000..5a1922cf1
--- /dev/null
+++ b/homebrew/python/.make.sh-auto
@@ -0,0 +1,16 @@
+pkg:setup
+ENV.delete "PYTHONPATH"
+xy = (prefix/"Frameworks/Python.framework/Versions").children.min.basename.to_s
+site_packages = HOMEBREW_PREFIX/"lib/python#{xy}/site-packages"
+site_packages_cellar = prefix/"Frameworks/Python.framework/Versions/#{xy}/lib/python#{xy}/site-packages"
+site_packages.mkpath
+site_packages_cellar.unlink if site_packages_cellar.exist?
+site_packages_cellar.parent.install_symlink site_packages
+rm_rf Dir["#{site_packages}/sitecustomize.py[co]"]
+(site_packages/"sitecustomize.py").atomic_write(sitecustomize)
+rm_rf Dir["#{site_packages}/setuptools*"]
+rm_rf Dir["#{site_packages}/distribute*"]
+rm_rf Dir["#{site_packages}/pip[-_.][0-9]*", "#{site_packages}/pip"]
+%w[setuptools pip wheel].each do |pkg|
+(libexec/pkg).cd do
+bin/"python3" -s setup.py --no-user-cfg install --force --verbose --install-scripts=#{bin} --install-lib=#{site_packages} --single-version-externally-managed --record=installed.txt
diff --git a/homebrew/python/_metadata/description b/homebrew/python/_metadata/description
new file mode 100644
index 000000000..fa9830528
--- /dev/null
+++ b/homebrew/python/_metadata/description
@@ -0,0 +1 @@
+Interpreted, interactive, object-oriented programming language
diff --git a/homebrew/python/_metadata/homepage b/homebrew/python/_metadata/homepage
new file mode 100644
index 000000000..20c4825fd
--- /dev/null
+++ b/homebrew/python/_metadata/homepage
@@ -0,0 +1 @@
+https://www.python.org/
diff --git a/homebrew/python/_metadata/name b/homebrew/python/_metadata/name
new file mode 100644
index 000000000..46c5d2cde
--- /dev/null
+++ b/homebrew/python/_metadata/name
@@ -0,0 +1 @@
+Python
diff --git a/homebrew/python/_metadata/version b/homebrew/python/_metadata/version
new file mode 100644
index 000000000..c1e43e6d4
--- /dev/null
+++ b/homebrew/python/_metadata/version
@@ -0,0 +1 @@
+3.7.3
diff --git a/homebrew/python/download.sh b/homebrew/python/download.sh
new file mode 100755
index 000000000..14e46d0c3
--- /dev/null
+++ b/homebrew/python/download.sh
@@ -0,0 +1 @@
+wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tar.xz \ No newline at end of file