Code

Opened 10 months ago

Closed 10 months ago

Last modified 10 months ago

#21032 closed Uncategorized (fixed)

pip 1.4 and pytz break installation of test requirements

Reported by: marfire Owned by: nobody
Component: Testing framework Version: master
Severity: Normal Keywords:
Cc: marfire Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

pip 1.4 isn't installing pytz properly because of how the latter formats its version numbers (see the bug report here). This is breaking the installation of the test requirements as suggested in the documentation. Specifically, none of the requirements are installed because pip can't find a valid version of pytz.

This could be solved for now by changing the requirements file to read pytz>=2013b (or some other acceptable version), which explicitly authorizes pre-release versions (which is what pip thinks pytz's version numbers represent).

If ignored this bug will presumably fix itself when pytz changes it's version numbers to conform to pip's expectations.

Attachments (0)

Change History (3)

comment:1 Changed 10 months ago by jcatalan

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to wontfix
  • Status changed from new to closed

While this actually affects django in that the docs suggest to install pytz using pip, I don't think this is a bug that should be solved within django. You can just use a previous version of pip to workaround this while pytz fixes this issue.

I tried for instance with pip 1.1 and it worked.

If this still doesn't solve your problem please let me know and we can reopen this ticket.

Bests,

Juan

comment:2 Changed 10 months ago by aaugustin

  • Resolution wontfix deleted
  • Status changed from closed to new

On the other hand, it's simple enough to change the requirements file so it actually works with the current version of pip.

Last edited 10 months ago by aaugustin (previous) (diff)

comment:3 Changed 10 months ago by Aymeric Augustin <aymeric.augustin@…>

  • Resolution set to fixed
  • Status changed from new to closed

In a9589dd280ba84db3131f32b423ef45c67a5a236:

Fixed #21032 -- pip 1.4 can't install pytz.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.