def test_wheel_no_compiles_pyc(script, data):
 script.pip('install', '--no-compile', 'simple.dist==0.1', '--no-index', ('--find-links=' + data.find_links))
 exists = [os.path.exists((script.site_packages_path / 'simpledist/__init__.pyc'))]
 exists += glob.glob((script.site_packages_path / 'simpledist/__pycache__/__init__*.pyc'))
 assert (not any(exists))

def test_wheel_no_compiles_pyc ( script , data ) : script . pip ( 'install' , '--no-compile' , 'simple.dist==0.1' , '--no-index' , ( '--find-links=' + data . find_links ) ) exists = [ os . path . exists ( ( script . site_packages_path / 'simpledist/__init__.pyc' ) ) ] exists += glob . glob ( ( script . site_packages_path / 'simpledist/__pycache__/__init__*.pyc' ) ) assert ( not any ( exists ) )
test installing from wheel with --compile on .