From 2bc357cb917c91c481ace41d3d36c45dcefced89 Mon Sep 17 00:00:00 2001 From: Chad Dombrova Date: Wed, 13 Nov 2019 10:26:02 -0800 Subject: [PATCH] Make work More fixy fix fix --- sdks/python/run_nose.py | 5 +++++ sdks/python/tox.ini | 3 +++ 2 files changed, 8 insertions(+) diff --git a/sdks/python/run_nose.py b/sdks/python/run_nose.py index 6a64533cd9f1b..f2db9afff3fe9 100644 --- a/sdks/python/run_nose.py +++ b/sdks/python/run_nose.py @@ -25,6 +25,8 @@ from __future__ import absolute_import +import sys + from nose.plugins import Plugin @@ -65,4 +67,7 @@ def configure(self, options, conf): if __name__ == '__main__': import nose + # remove the current directory so that we import from tox site-packages + # rather than the source tree. + sys.path = sys.path[1:] nose.main(addplugins=[BeamTestPlugin()]) diff --git a/sdks/python/tox.ini b/sdks/python/tox.ini index 2bc8f424c1c8a..f3b843b074d0c 100644 --- a/sdks/python/tox.ini +++ b/sdks/python/tox.ini @@ -34,6 +34,9 @@ extras = test whitelist_externals = false time + cp +deps = + cython: cython==0.28.1 # These 2 magic command overrides are required for Jenkins builds. # Otherwise we get "OSError: [Errno 2] No such file or directory" errors.