Skip to content

Instantly share code, notes, and snippets.

@Alphadelta14
Created August 25, 2015 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Alphadelta14/0533fa96be2bf95592b4 to your computer and use it in GitHub Desktop.
Save Alphadelta14/0533fa96be2bf95592b4 to your computer and use it in GitHub Desktop.
Working alternate install location
from setuptools.command.install import install
from setuptools import setup
class root_usr_install(install):
prefix = '/local'
def __init__(self, *args, **kwargs):
install.__init__(self, *args, **kwargs)
self.prefix = '/usr'
setup(name='newdispatch',
version='1.2.1',
description='Async Handler and Event Dispatcher',
url='http://github.com/Alphadelta14/python-newdispatch',
author='Alpha',
author_email='alpha@projectpokemon.org',
license='MIT',
packages=['dispatch', 'dispatch.events', 'dispatch.async'],
cmdclass={'install': root_usr_install},
zip_safe=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment