2017-07-16 39 views
1

私はBuildozerを使ってPython 3.5で書かれたKivyプロジェクトからAPKをビルドしようとしています。すべてがvirtualenv内にインストールされています。私は実行すると:私はフラグ--userはvirtualenvの中に意味がないことを理解しvirtualenvでbuildozerを実行するには?

Can not perform a '--user' install. User site-packages are not visible in this virtualenv. 
# Command failed: pip install -q --user "appdirs" "colorama>=0.3.3" "sh>=1.10" "jinja2" "six" 
# 
# Buildozer failed to execute the last command 
# The error might be hidden in the log above this error 
# Please read the full log, and search for it before 
# raising an issue with buildozer itself. 
# In case of a bug report, please add a full log with log_level = 2 

buildozer -v android debug 

を私は次のエラーを取得します。おそらく、デフォルトでBuildozerはvirtualenvの下で動作しません。 Buildozerにこのフラグをスキップする方法はありますか?それとも、別の解決策がありますか?

ありがとうございます。

答えて

0

とbuildozerのようです。私の解決策は、pipからpip.realに仮想envの名前を変更し、pipを、引数から--userを削除し、argsをpip.realに渡すシェルスクリプトで置き換えることです。 thisのようなものですが、正確ではありません。次のようになります:

#! /bin/sh 
args='' 
for arg in "[email protected]"; do 
    [ "$arg" == "--user" ] || args="$args $arg" 
done 
exec pip.real "$args 
関連する問題