Did I find the right examples for you? yes no

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

        def write_platform_requirements_file(install_path, components_list):
    requirements = copy.copy(_platform_requirements)
    req_set = set(requirements)
    # we stick the requirements file one level above the project root
    requirements_file = os.path.join(install_path, "engage_requirements.txt")
    for comp in components_list:
        req_list = get_additional_requirements(comp)
        for req in req_list:
            if req not in req_set:
                requirements.append(req)
                req_set.add(req)
    logger.debug("Platform requirements: %s" % requirements)
    with open(requirements_file, "w") as f:
        f.write("# Engage platform requirements\n")
        for req in requirements:
            f.write(req + "\n")
    return requirements_file
        


src/d/a/datablox-HEAD/engage/engage-dist/python_pkg/engage/drivers/genforma/engage_django_sdk/packager/generate_settings.py   datablox(Download)
 
 
from utils import app_module_name_to_dir, create_virtualenv, \
                  install_requirements, write_platform_requirements_file
from archive_handlers import create_handler, validate_archive_files
    virtualenv_path = os.path.join(install_path, "python")
    create_virtualenv(virtualenv_path, package_cache_dir=package_cache_dir)
    platform_reqs = write_platform_requirements_file(install_path,
                                                     components_list)
    logger.info(">> Installing platform requirements into virtualenv")

src/e/n/engage-HEAD/python_pkg/engage/drivers/genforma/engage_django_sdk/packager/generate_settings.py   engage(Download)
 
 
from utils import app_module_name_to_dir, create_virtualenv, \
                  install_requirements, write_platform_requirements_file
from archive_handlers import create_handler, validate_archive_files
    virtualenv_path = os.path.join(install_path, "python")
    create_virtualenv(virtualenv_path, package_cache_dir=package_cache_dir)
    platform_reqs = write_platform_requirements_file(install_path,
                                                     components_list)
    logger.info(">> Installing platform requirements into virtualenv")

src/e/n/engage-django-sdk-1.0.0/engage_django_sdk/packager/generate_settings.py   engage-django-sdk(Download)
 
 
from utils import app_module_name_to_dir, create_virtualenv, \
                  install_requirements, write_platform_requirements_file
from archive_handlers import create_handler, validate_archive_files
    virtualenv_path = os.path.join(install_path, "python")
    create_virtualenv(virtualenv_path)
    platform_reqs = write_platform_requirements_file(install_path,
                                                     components_list)
    logger.info(">> Installing platform requirements into virtualenv")