How to use 'switch in python3' in Python

Every line of 'switch in python3' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
21def switch_python_on(self):
22 self.cmake_flags += ['-DPYTHON2_PACKAGES_PATH="%s"' % os.path.join(P.prefix_python, P.python_prefix_scheme[0])]
23 self.require('numpy')
24 self.switch('python2', True)

Related snippets