distutils - Is is possible to install without the .py extensions

Jari Aalto jari.aalto at cante.net
Fri Mar 7 16:46:39 EST 2008


Given following setup.py stanza:

    #!/usr/bin/python

    from distutils.core import setup
    import glob

    setup(name='program',
          description='',
          keywords='',
          version='',
          url='',
          download_url='',
          license='',
          author='',
          author_email='',
          long_description="""
          """,
          scripts = ['program,py'],
          packages = ['''],
      )

Is there any way to fix the installation (postinstall or something), so
that the the result is:

    /usr/bin/program

instead of:

    /usr/bin/program.py

Jari

-- 
Welcome to FOSS revolution: we fix and modify until it shines




More information about the Python-list mailing list