summaryrefslogtreecommitdiff
path: root/homebrew/pythonat2
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/pythonat2
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff)
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/pythonat2')
-rw-r--r--homebrew/pythonat2/.beer73
-rw-r--r--homebrew/pythonat2/.make.sh-auto16
-rw-r--r--homebrew/pythonat2/_metadata/description1
-rw-r--r--homebrew/pythonat2/_metadata/homepage1
-rw-r--r--homebrew/pythonat2/_metadata/name1
-rw-r--r--homebrew/pythonat2/_metadata/version1
-rwxr-xr-xhomebrew/pythonat2/download.sh1
7 files changed, 94 insertions, 0 deletions
diff --git a/homebrew/pythonat2/.beer b/homebrew/pythonat2/.beer
new file mode 100644
index 000000000..260df9e38
--- /dev/null
+++ b/homebrew/pythonat2/.beer
@@ -0,0 +1,73 @@
+{
+ "name": "PythonAT2",
+ "description": "Interpreted, interactive, object-oriented programming language",
+ "url": "https://www.python.org/ftp/python/2.7.16/Python-2.7.16.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
+ }
+ ],
+ "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": [
+ "rm_f %W[",
+ "#{HOMEBREW_PREFIX}/bin/easy_install",
+ "#{HOMEBREW_PREFIX}/bin/pip",
+ "#{HOMEBREW_PREFIX}/bin/wheel",
+ "]",
+ "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\"]",
+ "setup_args = [\"-s\", \"setup.py\", \"--no-user-cfg\", \"install\", \"--force\",",
+ "\"--verbose\",",
+ "\"--single-version-externally-managed\",",
+ "\"--record=installed.txt\",",
+ "\"--install-scripts=#{bin}\",",
+ "\"--install-lib=#{site_packages}\"]",
+ "(libexec/\"setuptools\").cd { system \"#{bin}/python\", *setup_args }",
+ "(libexec/\"pip\").cd { system \"#{bin}/python\", *setup_args }",
+ "(libexec/\"wheel\").cd { system \"#{bin}/python\", *setup_args }",
+ "%w[pip pip2 pip2.7 easy_install easy_install-2.7 wheel].each do |e|",
+ "(HOMEBREW_PREFIX/\"bin\").install_symlink bin/e"
+ ],
+ "version": "2.7.16",
+ "file": "python@2.rb"
+} \ No newline at end of file
diff --git a/homebrew/pythonat2/.make.sh-auto b/homebrew/pythonat2/.make.sh-auto
new file mode 100644
index 000000000..7a2a95f42
--- /dev/null
+++ b/homebrew/pythonat2/.make.sh-auto
@@ -0,0 +1,16 @@
+pkg:setup
+rm_f %W[#{HOMEBREW_PREFIX}/bin/easy_install #{HOMEBREW_PREFIX}/bin/pip #{HOMEBREW_PREFIX}/bin/wheel ]
+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"]
+setup_args = ["-s", "setup.py", "--no-user-cfg", "install", "--force", "--verbose", "--single-version-externally-managed", "--record=installed.txt", "--install-scripts=#{bin}", "--install-lib=#{site_packages}"]
+(libexec/"setuptools").cd { system "#{bin}/python", *setup_args }
+(libexec/"pip").cd { system "#{bin}/python", *setup_args }
+(libexec/"wheel").cd { system "#{bin}/python", *setup_args }
+%w[pip pip2 pip2.7 easy_install easy_install-2.7 wheel].each do |e|
+(HOMEBREW_PREFIX/"bin").install_symlink bin/e
diff --git a/homebrew/pythonat2/_metadata/description b/homebrew/pythonat2/_metadata/description
new file mode 100644
index 000000000..fa9830528
--- /dev/null
+++ b/homebrew/pythonat2/_metadata/description
@@ -0,0 +1 @@
+Interpreted, interactive, object-oriented programming language
diff --git a/homebrew/pythonat2/_metadata/homepage b/homebrew/pythonat2/_metadata/homepage
new file mode 100644
index 000000000..20c4825fd
--- /dev/null
+++ b/homebrew/pythonat2/_metadata/homepage
@@ -0,0 +1 @@
+https://www.python.org/
diff --git a/homebrew/pythonat2/_metadata/name b/homebrew/pythonat2/_metadata/name
new file mode 100644
index 000000000..4d72ab986
--- /dev/null
+++ b/homebrew/pythonat2/_metadata/name
@@ -0,0 +1 @@
+PythonAT2
diff --git a/homebrew/pythonat2/_metadata/version b/homebrew/pythonat2/_metadata/version
new file mode 100644
index 000000000..35b46aeac
--- /dev/null
+++ b/homebrew/pythonat2/_metadata/version
@@ -0,0 +1 @@
+2.7.16
diff --git a/homebrew/pythonat2/download.sh b/homebrew/pythonat2/download.sh
new file mode 100755
index 000000000..64b50e615
--- /dev/null
+++ b/homebrew/pythonat2/download.sh
@@ -0,0 +1 @@
+wget https://www.python.org/ftp/python/2.7.16/Python-2.7.16.tar.xz \ No newline at end of file