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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:27:12+00:00 2026-05-26T01:27:12+00:00

I have a python project that depends on another project that depended on python-dateutil.

  • 0

I have a python project that depends on another project that depended on python-dateutil. When I tried to python setup.py install my project, it resolved the dateutil dependency to python-dateutil 2.0, which doesn’t work at all on python 2.x. The only way I found to fix the problem and make my project installable is to make my project directly depend on python-dateutil<2, even though it doesn’t directly use dateutil at all if its dependency doesn’t.

It looks like distutils2 / PEP 345 has a Requires-Python field to specify which versions of python the project is compatible.

  1. Is distutils2 the only way to specify this information for your project, and
  2. Will pypi or something similar be able to make use of this information, so that if I’m installing a project on python 2.x, then the dependency resolution will ignore python-dateutil 2?
  • 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-26T01:27:12+00:00Added an answer on May 26, 2026 at 1:27 am

    I have had this same problem using python-dateutil. There is some discussion of the problem with it’s author, but no real solution. The version listed on pypi is 1.5, but both pip and easy_install scrape the home page from the pypi listing for downloads and pickup up the 2.0 version (python3) that is listed there.

    There might be something in distutils2 that could work around it, but it would mean that both python-dateutil and your 3rd party library would have to update their distribution metadata to include/use this `Requires-Python’ info.

    I think you’re best option is to do what you have already been doing and make sure your project depends on it directly.

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

Sidebar

Related Questions

I have a clone of another python project (that has a setup.py etc.) in
We have a python project that we want to start testing using buildbot. Its
I have a small project that basically a Python wrapper to a websites API.
I need to have an at-home project now that I'm working on Python/Django at
I have a python project that calls a c++ wrapper dll that calls a
I have a python project that calls a c++ dll that calls a c#
I have a Python project that has the following structure: package1 class.py class2.py ...
I'm writing a setup.py file for a Python project so that I can distribute
Assuming that I have the following directory structure for a Python project: config/ scripts/
I have a django (Python) project that needs to know what version its code

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.