Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8316685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:24:59+00:00 2026-06-08T21:24:59+00:00

Related to my previous answer –I am very new to using setup.py to distribute

  • 0

Related to my previous answer–I am very new to using setup.py to distribute python packages.

According to python documentation, when passing script parameters to setup() in the setup.py file, it looks like you should use the script name without file extension.

setup(...,
      scripts=['scripts/xmlproc_parse', 'scripts/xmlproc_val']
      )

However, I found for my own test case that I needed to add the “.py” extension to the script parameter in order for packaging to work. E.g.:

config = {...
    'scripts': ['bin/testscript3.py'],
    }
....

setup(**config)

Am I doing something wrong, or is that the expected behavior? My guess is that this is expected, but I am just confused by the python documentation. I do realize this may have a trivial explanation, but after some googling I couldn’t figure it out, and maybe some other newbies will benefit from this question. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T21:25:00+00:00Added an answer on June 8, 2026 at 9:25 pm

    You must write the script name exactly as it is represented on your file system.

    I think you’re confused by the documentation as, on some platforms (Unix), filename extensions are not a standard way to choose in which program a file will be executed (look for “unix shebang” if you want to learn more), so, often, there is not filenames extensions on scripts.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a CSS related question, I got one good answer from my previous
Very much related to my previous question , but I found this to be
(This question is related to my previous question , or rather to my answer
soryr this is still related to my previous thread but i created this new
Thanks to Insin for answering a previous question related to this one. His answer
Related to my previous question , I have a string on the following format:
This is related to my previous question I'm solving UVA's Edit Step Ladders and
This is related to my previous question More than 1 Left joins in MSAccess
This is related to my previous question here . I want 4 divs (absolute
This is related to my previous question , but a different one. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.