Commits

Peter Sagerson committed 7703539

distutils integration.

  • Participants
  • Parent commits 29e7632

Comments (0)

Files changed (5)

 ^build/
 ^doc/_build/
+^dist/
+^MANIFEST$
+recursive-include bin *
+recursive-include functions *
+recursive-include test *
+
+include Makefile README README.md LICENSE setup.py
 	@mkdir -p build/zsh
 	cp $^ build/zsh
 	bin/build-monolithic.sh build/zsh/* > build/virtualenv-sh.zsh
-	bin/compile-all.zsh build/zsh/*
+	if [ $$(which zsh) ]; then zsh bin/compile-all.zsh build/zsh/*; fi
 	@rm -r build/zsh
 	@echo
 
 	cp build/virtualenv-sh.bash /usr/local/bin
 
 install-zsh: zsh
-	cp build/virtualenv-sh.zsh build/virtualenv-sh.zwc /usr/local/bin
+	cp build/virtualenv-sh.zsh /usr/local/bin
+	if [ -e build/virtualenv-sh.zwc ]; then cp build/virtualenv-sh.zwc /usr/local/bin; fi
 
 
 clean:
+README.md
+import subprocess
+
+from distutils.command.build import build
+from distutils.command.install import install
+from distutils.core import setup
+
+
+class VirtualenvSHBuild(build):
+    def run(self):
+        subprocess.call(['make'])
+
+
+class VirtualenvSHInstall(install):
+    def run(self):
+        subprocess.call(['make', 'install'])
+
+
+setup(
+    name='virtualenv-sh',
+    version='1.0',
+    description='Convenient shell interface to virtualenv',
+    long_description='''This is a leaner, faster derivative of virtualenvwrapper. the interface should be familiar to virtualenvwrapper users, minus the expensive parts. This project prioritizes speed avove all else.''',
+    url='https://bitbucket.org/psagers/virtualenv-sh',
+    author='Peter Sagerson',
+    author_email='psagers.pypi@ignorare.net',
+    license='BSD, Public Domain',
+    packages=[],
+    classifiers=[
+        'Programming Language :: Unix Shell',
+        'Operating System :: POSIX',
+        'Intended Audience :: Developers',
+        'License :: Public Domain',
+    ],
+    keywords=['virtualenv'],
+    cmdclass={'build': VirtualenvSHBuild, 'install': VirtualenvSHInstall},
+)