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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:12:44+00:00 2026-05-23T00:12:44+00:00

We develop on Ubuntu/Macs and deploy RPMs to CentOS (this is the settings, can’t

  • 0

We develop on Ubuntu/Macs and deploy RPMs to CentOS (this is the settings, can’t be changed much).

The problem is that when installing from the rpm, the packages go to /usr/local/lib/python2.7/dist-packages (which is the right location for Ubuntu). However the default python path in CentOS is looking at /usr/local/lib/python2.7/site-packages.

Is there a way to tell bdist_rpm where to install the files to?

  • 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-23T00:12:44+00:00Added an answer on May 23, 2026 at 12:12 am

    You can use a setup.cfg file to override the Python lib install path:

    setup.cfg:

    [install]
    install-lib=/usr/local/lib/python2.7/site-packages
    

    Example:

    % python setup.py bdist_rpm
    % rpm -qpl dist/foo-0.0.0-1.noarch.rpm | grep foo
    
    /usr/local/lib/python2.7/site-packages/foo/__init__.py
    /usr/local/lib/python2.7/site-packages/foo/__init__.pyc
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How i can develop and compile command line C++ programs in my Linux Ubuntu,
I develop rails in ubuntu and i just set up a virtualbox windows xp
I am planning to develop a couple of small applications using X on Ubuntu
I've run the following command in the Ubuntu terminal - sudo apt-get install mono-develop
How to develop app in Visual Studio and then deploy apps to Linux machine
I'm trying to develop a bash build script for a Java project that will
I was thinking in start to develop iPod applications, the thing is that I
I develop a Windows Service that will run under SYSTEM user. So I want
I need to develop an app that is using multithreading. Basicly, I have a
I have an Ubuntu Server (with all of LAMP and Subversion installed). I use

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.