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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:34:18+00:00 2026-05-11T13:34:18+00:00

I need to call easy_install as a function to install some Python eggs from

  • 0

I need to call easy_install as a function to install some Python eggs from a bunch of servers. Precisely what I install and where I get it from is determined at run-time: For example which servers I use depends on the geographic location of the computer.

Since I cannot guarantee that any single server will always be available, it has been decided that my script needs to check a number of servers. Some locations have prohibitive web-filtering so I need to check a UNC path. Other locations require me to check a mix, as in this example:

myargs = ['-vv', '-m', '-a', '-f', '//filesrver/eggs http://webserver1/python_eggs  http://webserver2/python_eggs, 'myproject==trunk-99'] setuptools.command.easy_install.main( myargs ) 

It seems to work just fine when I do not provide a find-links option (-f) (in this case it just picks up the defaults from distutils.cfg), when I try to specify an additional find-links the option all I get is:

Traceback (most recent call last):   File 'D:\workspace\pythonscripts_trunk\javapy_egg\Scripts\test_javapy.py', line 20, in ? result = pyproxy.requireEgg( eggspec , True, hosts ) File 'd:\workspace\pythonscripts_trunk\javapy_egg\src\calyon\javapy\pyproxy.py', line 141, in requireEgg pkg_resources.require(eggname) File 'd:\python24\lib\site-packages\setuptools-0.6c9-py2.4.egg\pkg_resources. py', line 626, in require needed = self.resolve(parse_requirements(requirements)) File 'd:\python24\lib\site-packages\setuptools-0.6c9-py2.4.egg\pkg_resources.py', line 524, in resolve raise DistributionNotFound(req)  # XXX put more info here pkg_resources.DistributionNotFound: myproject==trunk-99 

Can somebody confirm the correct way to do this? For example do I use Windows or UNIX slashes in the arguments? What character must be used to seperate multiple URLs?

I’m using setuptools 0.6c9 on Windows32

  • 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. 2026-05-11T13:34:19+00:00Added an answer on May 11, 2026 at 1:34 pm

    Quote:

    myargs = ['-vv', '-m', '-a', '-f', '//filesrver/eggs http://webserver1/python_eggs http://webserver2/python_eggs, 'myproject==trunk-99']  setuptools.command.easy_install.main( myargs ) 

    This first problem I see with this is that you’re missing a single quote on the end of your list of servers to look in.

    Also, it’s generally a good idea to surround each URL with double quotes to make sure they each get interpreted as a single item.

    I’m not sure what you’re doing with this argument 'myproject==trunk-99', but the way you have it written above, easy_install is interpreting it as a package name (see the documentation).

    You probably want to drop the myproject== as it is only looking for the project name, not a Boolean or keyword argument.

    Also, I think you meant to use the -v argument instead of the non-existant -vv.

    You were correct to use a space to separate your list of URLs/servers. Forward slashes will work on both Unix and Windows.

    Something like this should work for you:

    myargs = ['-v', '-m', '-a', '-f', ''//filesrver/eggs/' 'http://webserver1/python_eggs/' 'http://webserver2/python_eggs/'', 'trunk-99'] setuptools.command.easy_install.main( myargs ) 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 89k
  • Answers 89k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer cocoaAsyncSocket is an excellent toolkit for talking to a remote… May 11, 2026 at 5:55 pm
  • Editorial Team
    Editorial Team added an answer You can use SqlBulkCopy. A simple SqlBulkCopy might look like:… May 11, 2026 at 5:55 pm
  • Editorial Team
    Editorial Team added an answer If you treat the N x N matrix as an… May 11, 2026 at 5:55 pm

Related Questions

Sometimes I need to call WCF service in Silverlight and block UI until it
Quick (and hopefully easy) question: I need to trigger a download of a PDF
I need to have two way communication between threads in Tcl and all I
I need to set a single property in a jQuery command using a value

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.