我在Jenkins CI下有一些virtualenv
收集我的包并运行:
python setup.py test
virtualenv已经安装了pip并且我导出了路径.my_env/Scripts
(CI在Windows下),在我的setup.py我试图调用pip来安装{{1}使用pywin32
,脚本输出:
subprocess.call
您可以看到+ pip list
pip (7.0.3)
setuptools (17.1.1)
+ echo '######### starting test #########'
######### starting test #########
+ python setup.py test
'pip' is not recognized as an internal or external command,
operable program or batch file.
正在查找,然后我正在调用pip list
setup.py
setup.py test
知道为什么pip在Jenkins shell中被识别而在...
if sys.platform == 'win32':
bin_path = join(dirname(realpath(__file__)), 'bin', 'pywin32-219.zip')
subprocess.call(['pip', 'install', bin_path], shell=True)
...
没有被识别出来?