def add_fake_setup_py(tmpdir): """Add fake setup.py for extract scripts tests""" setup_path = os.path.join(tmpdir, 'setup.py') with open(setup_path, 'w') as setup_file: setup_file.write(SH_SETUP_FILE)