Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable DTrace builds for 2.7.x on OS X #43

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions pythonz/commands/install.py
Expand Up @@ -79,6 +79,14 @@ def __init__(self):
default=False,
help="Build static libraries."
)
self.parser.add_option(
"--with-dtrace",
dest="dtrace",
action="store_true",
default=False,
help="Build with dtrace support."
)


def run_command(self, options, args):
if not args:
Expand Down
4 changes: 4 additions & 0 deletions pythonz/installer/pythoninstaller.py
Expand Up @@ -127,6 +127,8 @@ def __init__(self, version, options):
if options.universal:
self.configure_options.append('--enable-universalsdk=/')
self.configure_options.append('--with-universal-archs=intel')
if options.dtrace:
self.configure_options.append('--with-dtrace')

@classmethod
def get_version_url(cls, version):
Expand Down Expand Up @@ -292,6 +294,8 @@ def _patch_osx(self):
PATH_PATCHES_OSX_PYTHON27 = os.path.join(PATH_PATCHES_OSX, "python27")
if version < '2.7.4':
self._append_patch(PATH_PATCHES_OSX_PYTHON27, ['patch-Modules-posixmodule.diff'])
if self.options.dtrace:
self._append_patch(PATH_PATCHES_OSX_PYTHON27, ['patch-dtrace.diff'])

def patch(self):
if sys.platform == "darwin":
Expand Down