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

Always build with enable-dex when installing #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from distutils.command.build_ext import build_ext
from setuptools import setup, Command, Extension
from codecs import open

from setuptools.command import build_py
import distutils.errors
import distutils.ccompiler
import distutils.sysconfig
Expand All @@ -31,6 +31,14 @@
import subprocess


class BuildPyCommand(build_py.build_py):
"""Custom build command."""

def run(self):
self.run_command('enable-dex')
build_py.build_py.run(self)


OPTIONS = [
('dynamic-linking', None, 'link dynamically against libyara'),
('enable-cuckoo', None, 'enable "cuckoo" module'),
Expand Down Expand Up @@ -310,7 +318,9 @@ def run(self):
cmdclass={
'build': BuildCommand,
'build_ext': BuildExtCommand,
'update': UpdateCommand},
'update': UpdateCommand,
'build_py': BuildPyCommand,
},
ext_modules=[Extension(
name='yara',
include_dirs=['yara/libyara/include', 'yara/libyara/', '.'],
Expand Down