@pytest.mark.network
def test_no_compiles_pyc(script, data):
 del script.environ['PYTHONDONTWRITEBYTECODE']
 script.pip('install', '--no-compile', '--no-binary=:all:', 'INITools==0.2')
 exists = [os.path.exists((script.site_packages_path / 'initools/__init__.pyc'))]
 exists += glob.glob((script.site_packages_path / 'initools/__pycache__/__init__*.pyc'))
 assert (not any(exists))

@ pytest . mark . network def test_no_compiles_pyc ( script , data ) : del script . environ [ 'PYTHONDONTWRITEBYTECODE' ] script . pip ( 'install' , '--no-compile' , '--no-binary=:all:' , 'INITools==0.2' ) exists = [ os . path . exists ( ( script . site_packages_path / 'initools/__init__.pyc' ) ) ] exists += glob . glob ( ( script . site_packages_path / 'initools/__pycache__/__init__*.pyc' ) ) assert ( not any ( exists ) )
test installing from wheel with --compile on .