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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:14:31+00:00 2026-06-08T01:14:31+00:00

I have an issue with python egg versions. On my development machine I have

  • 0

I have an issue with python egg versions. On my development machine I have python-ldap version 2.3.13, while colleges on their machines have version 2.3.10. Both python-ldap libs are installed on os level.

Is it possible to tell buildout not to look for newest python-ldap version?

I’m looking for something like this:

# using buildout-versions extension
[versions]
python-ldap = any
or
python-ldap => 2.1

I would not like to use buildout -N, since I’d like to get other egg newest versions.

  • 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-08T01:14:32+00:00Added an answer on June 8, 2026 at 1:14 am

    Buildout only let’s you pin (exact) versions by using a versions section:

    [buildout]
    versions = myversions
    
    [versions]
    python-ldap = 2.3.13
    

    where the versions key in the [buildout] section names a section to be used for the pins (most just call that section [versions] as well).

    If you need to pin that to a version that differs from machine to machine, you’ll have to use a recipe that generates versions based on external parameters.

    In the following example I am using the mr.scripty recipe to run some python to fetch the version pin for me:

    [buildout]
    versions = versions
    
    [versions]
    python-ldap = ${dynamic:python-ldap}
    
    [dynamic]
    recipe = mr.scripty
    python-ldap =
        ... import subprocess
        ... return subprocess.check_output(
        ...    'dpkg-query', '-W', '-f', '${Version}', 'python-ldap').rsplit('-')[0]
    

    The example above uses the dpkg-query utility to determine the version of the python-ldap package on Debian or Ubuntu; adjust as needed for your own platform.

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

Sidebar

Related Questions

I am working with Ruby every day, but i have an issue in Python.
i have an issue i could use some help with, i have python list
I have a memory issue with mongoengine (in python). Let's say I have a
I have a Python script that needs to issue a number of shell commands.
I'm have an issue with running the built in Python server that comes with
I am learning Python at the moment and I have hit an issue. Observe
I have an issue to install python-tk package for my app to user's computer.
I have a very peculiar issue with Python library. I downloaded the a python
I have come across a very strange issue in python. (Using python 2.4.x) In
The target machine running the python application will have three network interfaces available to

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.