Created
April 12, 2012 10:04
-
-
Save medwards/2366194 to your computer and use it in GitHub Desktop.
Adding custom commands to python setup.py
This file contains hidden or 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
from setuptools import Command | |
class Compile(Command): | |
description = "run a custom compile command" | |
user_options = tuple() | |
def run(self): | |
print self.description | |
def initialize_options(self): | |
pass | |
def finalize_options(self): | |
pass |
This file contains hidden or 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
entry_points = { | |
"distutils.commands" : [ "compile = package.commands:Compile" ] | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment