[Distutils] scripts versus console_scripts

Reinout van Rees reinout at vanrees.org
Wed Sep 2 15:14:07 CEST 2009


On 2009-09-02, Reinout van Rees <reinout at vanrees.org> wrote:

> - pyflakes and docutils use the (apparently old) scripts=['scripts/pyflakes']
>   option instead of a console_scripts entry point.

Just for easy reference: here's the setup.py of pyflakes:


#!/usr/bin/python
# (c) 2005-2009 Divmod, Inc.  See LICENSE file for details

from distutils.core import setup

setup(
    name="pyflakes",
    license="MIT",
    version="0.3.0",
    description="passive checker of Python programs",
    author="Phil Frost",
    maintainer="Moe Aboulkheir",
    maintainer_email="moe at divmod.com",
    url="http://www.divmod.org/trac/wiki/DivmodPyflakes",
    packages=["pyflakes", "pyflakes.scripts", "pyflakes.test"],
    scripts=["bin/pyflakes"],
    long_description="""Pyflakes is program to analyze Python programs and detect various errors. It
works by parsing the source file, not importing it, so it is safe to use on
modules with side effects. It's also much faster.""")


Reinout

-- 
Reinout van Rees - reinout at vanrees.org - http://reinout.vanrees.org
Software developer at http://www.thehealthagency.com
"Military engineers build missiles. Civil engineers build targets"



More information about the Distutils-SIG mailing list