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 8160525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:16:08+00:00 2026-06-06T18:16:08+00:00

I am currently coding setup.py using setuptools. And I want to copy the static

  • 0

I am currently coding setup.py using setuptools.
And I want to copy the static data (which is not a Python module) to site-packages.

The thing is, the current folder hierarchy is structured like the following:

setup.py
src
    Pure Python Module
skeleton
    example
        __init__.py
    resources
        static
            error.css
            example.css
            logo_shadow.png
        template
            error.html
            example.html
    server.tmplt

I want to copy the skeleton directory to site-packages WHILE maintaining the folder structure/hierarchy, but how should I do this?

  • 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-06T18:16:09+00:00Added an answer on June 6, 2026 at 6:16 pm

    I solved the problem by processing the static files separately, not using setuptools.

    from sys import argv
    try:
        if argv[1] == 'install':
            from os.path import join
            from distutils.sysconfig import get_python_lib
            from shutil import copytree
            OrigSkeleton = join('src', 'skeleton')
            DestSkeleton = join(get_python_lib(), 'cumulus', 'skeleton')
            copytree(OrigSkeleton, DestSkeleton)
    
    except IndexError: pass
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently coding some chat program and now want to play music via
I'm currently working at home, but it's not always an ideal environment for coding.
I'm currently using the Visual Studio Installer (Setup Project) in Visual Studio 2010 as
Currently I'm using TCC as it's the easiest thing to get setup on windows.
I've recently setup a new site which utilises Amazon Cloudfront to distribute very large
i currently have a Java Observer/Observable setup in which i switch on some field
Currently coding a mates portfolio and not to my surprise the code isn't loading
I am quite new to Java and am currently coding an Android application. In
We are currently going through the long process of writing some coding standards for
I am currently trying to stream content out to the web after a trans-coding

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.