Skip to content

Commit ae5df97

Browse files
committed
Don't normalize the distname in make_nspkg_sdist
1 parent 8795306 commit ae5df97

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

setuptools/tests/test_easy_install.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,10 +1120,7 @@ def make_nspkg_sdist(dist_path, distname, version):
11201120
package with the same name as distname. The top-level package is
11211121
designated a namespace package).
11221122
"""
1123-
# The project name might not contain periods. Replace dashes and
1124-
# underscores with periods before constructing the namespace.
1125-
namespace = distname.replace('-', '.').replace('_', '.')
1126-
parts = namespace.split('.')
1123+
parts = distname.split('.')
11271124
nspackage = parts[0]
11281125

11291126
packages = ['.'.join(parts[:idx]) for idx in range(1, len(parts) + 1)]

0 commit comments

Comments
 (0)