-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1091 from ptomulik/fix/python_spec
add FPM::Util.execmd and fix python_spec.rb
- Loading branch information
Showing
3 changed files
with
185 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# The following python code helps predicting easy_install's default behavior. | ||
# See: http://stackoverflow.com/a/9155056 | ||
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 | ||
|
||
default_options = _easy_install_default() | ||
import distutils.errors | ||
try: | ||
default_options.finalize_options() | ||
except distutils.errors.DistutilsError: | ||
pass | ||
|
||
__all__=[default_options] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters