Skip to content

Commit

Permalink
Cleaning up final TODO's? (or opening a can of worms :-D)
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Oct 28, 2015
1 parent e4fb989 commit 9fc55e5
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pip_accel/bdist.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Functions to manipulate Python binary distribution archives.
#
# Author: Peter Odding <peter.odding@paylogic.com>
# Last Change: October 27, 2015
# Last Change: October 28, 2015
# URL: https://github.com/paylogic/pip-accel

"""
Expand Down Expand Up @@ -72,11 +72,9 @@ def get_binary_dist(self, requirement):
:py:class:`tarfile.TarInfo` object and a file-like object.
"""
cache_file = self.cache.get(requirement)
# TODO Invalidating does not work on Windows in appveyor. Skip it for now.
if not WINDOWS:
if cache_file and requirement.last_modified > os.path.getmtime(cache_file):
logger.info("Invalidating old %s binary (source is newer) ..", requirement)
cache_file = None
if cache_file and requirement.last_modified > os.path.getmtime(cache_file):
logger.info("Invalidating old %s binary (source is newer) ..", requirement)
cache_file = None
if not cache_file:
logger.debug("%s hasn't been cached yet, doing so now.", requirement)
# Build the binary distribution.
Expand Down

0 comments on commit 9fc55e5

Please sign in to comment.