Skip to content

Instantly share code, notes, and snippets.

@shomah4a
Created July 25, 2011 03:31
Show Gist options
  • Save shomah4a/1103516 to your computer and use it in GitHub Desktop.
Save shomah4a/1103516 to your computer and use it in GitHub Desktop.
PyPy 用 setup.py 書いてみた
#-*- 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