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

Discussion in 'Python' started by Jari Aalto, Mar 7, 2008.

  1. Jari Aalto

    Jari Aalto Guest

    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
     
    Jari Aalto, Mar 7, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bob Smith
    Replies:
    0
    Views:
    293
    Bob Smith
    Jul 9, 2003
  2. Simon Wittber (Maptek)

    RE: Possible to install from CD using distutils?

    Simon Wittber (Maptek), Aug 12, 2003, in forum: Python
    Replies:
    2
    Views:
    314
    Thomas Heller
    Aug 12, 2003
  3. George Sakkis
    Replies:
    2
    Views:
    448
    George Sakkis
    Jun 22, 2005
  4. timw.google
    Replies:
    1
    Views:
    549
    Serge Orlov
    May 11, 2006
  5. Luis Alberto Zarrabeitia Gomez

    distutils, No module named numpy.distutils.fcompiler.conv_template

    Luis Alberto Zarrabeitia Gomez, Mar 30, 2009, in forum: Python
    Replies:
    0
    Views:
    1,330
    Luis Alberto Zarrabeitia Gomez
    Mar 30, 2009
Loading...

Share This Page