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

  • Home
  • SEARCH
  • 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 1054253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:22:34+00:00 2026-05-16T17:22:34+00:00

I use distribute to package a small python library. I made a directory structure

  • 0

I use distribute to package a small python library. I made a directory structure as described in the Hitchhiker’s Guide to Packaging.

My question: Where (in the directory structure) do I place example scripts that show how to use the library and what changes are necessary to the setup.py?

  • 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-05-16T17:22:35+00:00Added an answer on May 16, 2026 at 5:22 pm

    I think its good, not to install the examples,
    rather you can keep your examples folder with your distribution, so it may be on the same level where your setup.py,

    If you want to include them, then include as separate module of package, like ‘example’ – and that directory holds the all example scripts, that users can refer even after installing.

    package_data = {
            'module_1': [files],
            'module_2': [files],
            'example': [files],
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use setuptools to distribute my python package. Now I need to distribute additional
About the only reason I can think of to distribute a python package as
We have an existing application that makes use of the System.IO.Packaging.Package class for reading
To distribute my Ubuntu packages, I use debuild -S to create the source package
I am investigating a way to use bamboo to distribute complex environment changes to
When you code a distributed algorithm, do you use any library to model abstract
I'm using NSIS package generator in CMake 2.8.1 to distribute a Qt application. Everything
What is the best way to make use of a C++ library in R,
I am writing a package in python that talks to an ldap server. I
Currently I use Ripple Package and Sign option, and then use Blackberry Desktop Manager

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.