diff options
Diffstat (limited to 'homebrew/pythonat2/.make.sh-auto')
-rw-r--r-- | homebrew/pythonat2/.make.sh-auto | 16 |
1 files changed, 16 insertions, 0 deletions
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 |