瀏覽代碼

use full path when installing a jar

pull/378/head
Josh Friend 9 年之前
父節點
當前提交
e285f2e5b1
共有 2 個文件被更改,包括 3 次插入10 次删除
  1. +3
    -1
      plugins/python-build/bin/python-build
  2. +0
    -9
      plugins/python-build/share/python-build/jython-2.7.0

+ 3
- 1
plugins/python-build/bin/python-build 查看文件

@ -534,7 +534,9 @@ fetch_jar() {
download_tarball "$package_url" "$package_filename" "$checksum"
fi
{ if $JAVA -jar ${package_name}.jar -s -d ${package_name}; then
# Must use full path to jar and destination directory:
# http://bugs.jython.org/issue2350
{ if $JAVA -jar $PWD/${package_name}.jar -s -d $PWD/${package_name}; then
if [ -z "$KEEP_BUILD_PATH" ]; then
rm -f "$package_filename"
else

+ 0
- 9
plugins/python-build/share/python-build/jython-2.7.0 查看文件

@ -1,15 +1,6 @@
require_java
install_jar "jython-2.7.0" "https://repo1.maven.org/maven2/org/python/jython-installer/2.7.0/jython-installer-2.7.0.jar#b44352ece72382268a60e2848741c96609a91d796bb9a9c6ebeff62f0c12c9cf" jython
# Jython is supposed to install pip using ensurepip by default, but this does
# not appear to be working so we do it manually.
#
# pyenv's `ensurepip` downloads `get-pip.py` which isnt currently compatible
# with jython: http://bugs.jython.org/issue2302
#
# Use the ensurepip module in jython to install the bundled pip instead:
"$PYTHON_BIN" -m ensurepip
case "$(pypy_architecture 2>/dev/null || true)" in
"osx64"|"win32" )
# Jython does not seem to work properly on OSX/windows unless JAVA_HOME is set

Loading…
取消
儲存