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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:30:02+00:00 2026-05-30T14:30:02+00:00

I have a little problem with setuptools/easy_install; maybe someone could give me a hint

  • 0

I have a little problem with setuptools/easy_install; maybe someone could give me a hint what might be the cause of the problem:

To easily distribute one of my python webapps to servers I use setuptools’ sdist command to build a tar.gz file which is copied to servers and locally installed using easy_install /path/to/file.tar.gz.

So far this seems to work great. I have listed everything in the MANIFEST.in file like this:

global-include */*.py */*.mo */*.po */*.pot */*.css */*.js */*.png */*.jpg */*.ico */*.woff */*.gif */*.mako */*.cfg

And the resulting tar.gz file does indeed contain all of the files I need.

It gets weird as soon as easy_install tries to actually install it on the remote system. For some reason a directory called locales and a configuration file called migrate.cfg won’t get installed. This is odd and I can’t find any documentaiton about this, but I guess it’s some automatic ignore feature of easy_install?

Is there something like that? And if so, how do I get easy_install to install the locales and migrate.cfg files?

Thanks!

For reference here is the content of my setup.py:

from setuptools import setup, find_packages


requires = ['flup', 'pyramid', 'WebError', 'wtforms', 'webhelpers', 'pil', 'apns', \
            'pyramid_beaker', 'sqlalchemy', 'poster', 'boto', 'pypdf', 'sqlalchemy_migrate', \
            'Babel']

version_number = execfile('pubserverng/version.py')

setup(
    author='Bastian',
    author_email='test@domain.com',
    url='http://domain.de/',
    name = "mywebapp",
    install_requires = requires,
    version = __version__,
    packages = find_packages(),
    zip_safe=False,
    entry_points = {
        'paste.app_factory': [
            'pubserverng=pubserverng:main'
        ]
    },

    namespace_packages = ['pubserverng'],

    message_extractors = { 'pubserverng': [
            ('**.py', 'python', None),
            ('templates/**.html', 'mako', None),
            ('templates/**.mako', 'mako', None),
            ('static/**', 'ignore', None),
            ('migrations/**', 'ignore', None), 
        ]
    },


)
  • 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-30T14:30:03+00:00Added an answer on May 30, 2026 at 2:30 pm

    I hate to answer my own question this quickly, but after some trial and error I found out what the reason behind the missing files was. In fact it was more than one reason:

    • The SOURCES.txt file was older and included a full list of most files, which resulted in them being bundled correctly.
    • The MANIFEST.in file was correct, too, so all required files were actually in the .tar.gz archive as expected. The main problem was that a few files simply would not get installed on the target machine.
    • I had to add include_package_data = True, to my setup.py file. After doing that all files installed as expected.

    I’ll have to put some research into include_package_data to find out if this weird behavior is documented somewhere. setuptools is a real mess – especially the documentation.

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

Sidebar

Related Questions

I have one little problem...Here is my code..Is there a way to distribute weights
I have a little problem. I have one 1 RichTextBox and 2 Buttons. I
i have a little problem with my Ajax calls. Maybe i do not have
i have little problem with boost::asio library. My app receive and process data asynchronously,
I have a little problem with a Listview. I can load it with listview
I have a little problem with a simple vbScript. The script has to run
I have a little problem with some jquery and http://www.mikage.to/jquery/jquery_history_noc.html The function works great,
I have a little problem where I would like to insert a svn diff
I have this little problem, that I cannot figure out which arguments to pass
I have a little problem with a query. I'm selecting data using the between

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.