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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:31:28+00:00 2026-05-28T07:31:28+00:00

Lately I was working on changing the deployment of our in-house python modules. Those

  • 0

Lately I was working on changing the deployment of our in-house python modules. Those modules are for in-house usage only. Our previous deployment is to put all modules into somewhere (ex, /gozilla/pylib) and set the global environment variable, PYTHONPATH point to it.

I am wondering if it is a good idea to make use of virtualenv for this kind of deployment? Or some other alternative ways to do that, especially making use of setup.py mechanism with possibility to do auto unit-test, doc-gen, …?

Update

For making use of PYTHONPATH, it works well except that we have to do our own copy-n-paste for deployment and there is no any support for unit-test, doc-gen, module-dependency…

For making use of virtualenv as deployment tool, other (stand-alone) python scripts are asked to enter virtual env mode by source …bin/activate or by manually invoke execfile(activate_this, dict(_file_=activate_this)) in the very beginning of their own script. Is it possible to prevent this kind of manually entering virtualenv mode by execfile for each Python scripts?

That’s what I get right now 😉 and I am looking for other suggested ways to do that.

  • 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-28T07:31:29+00:00Added an answer on May 28, 2026 at 7:31 am

    Yes, it is a good idea, since you get all the advantages you already mentioned.

    I can recommend using Paver (which makes setuptools decent to extend), and also integrates things like unit tests, Sphinx, etc. into the build process.

    Regarding the auto-activation of the venv, if you add “console_scripts” entry points to your project’s setup, then setuptools will automatically create script stubs that do just that — on any supported target platform.

    Then you can either write an installer script that creates a virtualenv on the target machine using pre-built eggs, or package a whole venv into an OS package (e.g. .deb). There’s tools for that, too, in various stages of maturity.

    *) http://paver.github.com/paver/

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

Sidebar

Related Questions

I've run into a problem with Ajax lately. I'm working on a frontend of
While working on my code lately, I've noticed that some of the memory usage
I have been working on packing a project lately but it has turned into
i have been working on one tool lately. It grabs all the link addresses
I've been working with some game engines lately. They all have an Update() function
I've been getting my hands dirty lately working on development for the iPhone. Development
I have been working lately on a number of iterative algorithms in MATLAB, and
A common task in programs I've been working on lately is modifying a text
Background Lately I've become a fanatic that everything I type while working on a
I have been working with Exceptions lately. I think it makes sense to log

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.