Created
July 25, 2011 03:31
-
-
Save shomah4a/1103516 to your computer and use it in GitHub Desktop.
PyPy 用 setup.py 書いてみた
This file contains 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
#-*- coding:utf-8 -*- | |
# setup.py for pypy repository | |
import setuptools | |
import os | |
version = '1.5.0' | |
root = os.path.dirname(__file__) | |
pkg = os.path.normpath(os.path.join(os.path.dirname(__file__), 'pypy')) | |
pkgs = [] | |
commands = [] | |
for p, dirs, files in os.walk(pkg): | |
now = p[len(os.path.dirname(__file__))+1:] | |
base = os.path.basename(now) | |
if '__init__.py' in files and base != 'test': | |
pkgs.append(now.replace('/', '.')) | |
if base == 'bin': | |
for f in files: | |
commands.append(os.path.join(now, f)) | |
setuptools.setup(name='pypy', | |
version=version, | |
packages=pkgs, | |
scripts=commands) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment