#NEWLINE# def create_environment( home_dir , site_packages = False , clear = False , unzip_setuptools = False , prompt = None , search_dirs = None , never_download = False , no_setuptools = False , no_pip = False , symlink = True ) : #NEWLINE# #INDENT# '\n    Creates a new environment in ``home_dir``.\n\n    If ``site_packages`` is true, then the global ``site-packages/``\n    directory will be on the path.\n\n    If ``clear`` is true (default False) then the environment will\n    first be cleared.\n    ' #NEWLINE# ( home_dir , lib_dir , inc_dir , bin_dir ) = path_locations ( home_dir ) #NEWLINE# py_executable = os . path . abspath ( install_python ( symlink , lib_dir , inc_dir , bin_dir , site_packages = site_packages , clear = clear , symlink = symlink ) ) #NEWLINE# install_distutils ( home_dir ) #NEWLINE# if ( not no_setuptools ) : #NEWLINE# #INDENT# to_install = [ 'setuptools' ] #NEWLINE# if ( not no_pip ) : #NEWLINE# #INDENT# to_install . append ( 'pip' ) #NEWLINE# #UNINDENT# install_wheel ( to_install , py_executable , search_dirs ) #NEWLINE# #UNINDENT# install_activate ( home_dir , bin_dir , prompt )