blob: 28cc2edafd30212e2c128d9c37babd15c93d6d92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#
# 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)
|