Skip to content

preprocess does not work out of the box on windows #2

@GoogleCodeExporter

Description

@GoogleCodeExporter
I am unable to run "preprocess -h" in the dos-prompt on my windows 7 system and 
pythonxy v2.7.9 out of the box after installation.

I found that it has to do with the console script is not properly registered.


By changing the following in setup.py:

Replace 
    from distutils.core import setup
with
    from setuptools import setup

and
    scripts=[script],
with
    entry_points={
              'console_scripts': ['preprocess = preprocess:main']},

and redefining the beginning of the main function in preprocess to:

def main(argv=None):
    if argv is None:
        argv = sys.argv

it worked out of the box for me.



Original issue reported on code.google.com by Per.Andreas.Brodtkorb@gmail.com on 19 Jan 2015 at 2:01

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions