(self, context)
Create a configuration file indicating where the environment's Python
        was copied from, and whether the system site-packages should be made
        available in the environment.

        :param context: The information for the environment creation request
                        being processed.
Create a configuration file indicating where the environment's Python
        was copied from, and whether the system site-packages should be made
        available in the environment.
Create a configuration file indicating where the environment s Python was copied from and whether the system site - packages should be made available in the environment .
def create_configuration(self, context):
        """
        Create a configuration file indicating where the environment's Python
        was copied from, and whether the system site-packages should be made
        available in the environment.

        :param context: The information for the environment creation request
                        being processed.
        """
        context.cfg_path = path = os.path.join(context.env_dir, 'pyvenv.cfg')
        with open(path, 'w', encoding='utf-8') as f:
            f.write('home = %s\n' % context.python_dir)
            if self.system_site_packages:
                incl = 'true'
            else:
                incl = 'false'
            f.write('include-system-site-packages = %s\n' % incl)
            f.write('version = %d.%d.%d\n' % sys.version_info[:3])
            if self.prompt is not None:
                f.write(f'prompt = {self.prompt!r}\n')
def create_configuration ( self , context ) : context . cfg_path = path = os . path . join ( context . env_dir , 'pyvenv.cfg' ) with open ( path , 'w' , encoding = 'utf-8' ) as f : f . write ( 'home = %s\n' % context . python_dir ) if self . system_site_packages : incl = 'true' else : incl = 'false' f . write ( 'include-system-site-packages = %s\n' % incl ) f . write ( 'version = %d.%d.%d\n' % sys . version_info [ : 3 ] ) if self . prompt is not None : f . write ( f'prompt = {self.prompt!r}\n' )