# # Copyright (c) ZeroC, Inc. All rights reserved. # from setuptools.command.easy_install import easy_install class easy_install_default(easy_install): """ class easy_install had problems with the fist parameter not being an instance of Distribution, even though it was. This is due to some import-related mess. """ def __init__(self): from distutils.dist import Distribution dist = Distribution() self.distribution = dist self.initialize_options() self._dry_run = None self.verbose = dist.verbose self.force = None self.help = 0 self.finalized = 0 e = easy_install_default() import os, distutils.errors try: e.finalize_options() except distutils.errors.DistutilsError: pass # Place the source files and the extension in a subdirectory of the installation directory. print(e.install_dir)