Adding a check for Linux to test 06_docker_images's check for the '/dockcross' directory

This commit is contained in:
Yannick Jadoul
2017-12-29 13:42:08 +01:00
parent 08194a1db9
commit 9013a7783f
+1 -1
View File
@@ -5,7 +5,7 @@ from setuptools import setup, Extension
if sys.argv[-1] != '--name':
# check that we're running in the correct docker image as specified in the
# environment options CIBW_MANYLINUX1_*_IMAGE
if not os.path.exists('/dockcross'):
if 'linux' in sys.platform and not os.path.exists('/dockcross'):
raise Exception('/dockcross directory not found. Is this test running in the correct docker image?')
setup(