Skip to content

Commit

Permalink
Merge pull request Miserlou#2117 from Miserlou/bugfix/Miserlough-2116-…
Browse files Browse the repository at this point in the history
…deal-with-non-alphanumeric-characters-in-package-names

MiserlouGH-2116 deal with non-alphanumeric package names
  • Loading branch information
jneves committed Jul 14, 2020
2 parents f06ea20 + 21c410f commit 0c8d99d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zappa/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,8 @@ def get_cached_manylinux_wheel(self, package_name, package_version, disable_prog
os.makedirs(cached_wheels_dir)
else:
# Check if we already have a cached copy
wheel_file = f'{package_name}-{package_version}-*_x86_64.whl'
wheel_name = re.sub("[^\w\d.]+", "_", package_name, re.UNICODE)
wheel_file = f'{wheel_name}-{package_version}-*_x86_64.whl'
wheel_path = os.path.join(cached_wheels_dir, wheel_file)

for pathname in glob.iglob(wheel_path):
Expand Down

0 comments on commit 0c8d99d

Please sign in to comment.