subprocess32に依存するライブラリ(subx)があります。 subprocess32ライブラリはPython2.7のバックポートであり、タイムアウトkwargを提供します。依存関係管理:Python2.7に必要なサブプロセス32
私のライブラリにはタイムアウトkwargが必要です。
ターゲットプラットフォームがPython2.xの場合のみ、サブプロセス32が必要です。
プロジェクトで依存関係をどのように定義する必要がありますか? 、
===> pip install -e git+https://github.com/guettli/subx.git#egg=subx
Obtaining subx from git+https://github.com/guettli/subx.git#egg=subx
Cloning https://github.com/guettli/subx.git to ./src/subx
Collecting subprocess32 (from subx)
Using cached subprocess32-3.2.7.tar.gz
Complete output from command python setup.py egg_info:
This backport is for Python 2.x only.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-lju3nl1y/subprocess32/
これは完全な答えと思われます。しかし、Windowsの 'sys.platform'は、Windowsの場合は' win32'を、Windows/Cygwinの場合は 'cygwin'を出力します。 –
@ElisByberi afaikの基本式がサポートされているので、 '' win32 "== sys_platformまたは" cygwin "== sys_platform'が動作するはずです。しかし、 'platform_system'のような他の環境マーカーがあります。これはおそらくこのケースに適しています。再度、[PEP 508](https://www.python.org/dev/peps/pep-0508/#environment-markers)で詳細を確認してください。 – hoefling