Skip to content

Commit

Permalink
Merge pull request #135 from mgorny/pypy-home-scheme
Browse files Browse the repository at this point in the history
Update test_home_installation_scheme for pypy install paths
  • Loading branch information
jaraco authored Apr 10, 2022
2 parents 2a233e5 + 9d86bf2 commit a64a054
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions distutils/tests/test_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,15 @@ def check_path(got, expected):
expected = os.path.normpath(expected)
self.assertEqual(got, expected)

libdir = os.path.join(destination, "lib", "python")
impl_name = sys.implementation.name.replace("cpython", "python")
libdir = os.path.join(destination, "lib", impl_name)
check_path(cmd.install_lib, libdir)
_platlibdir = getattr(sys, "platlibdir", "lib")
platlibdir = os.path.join(destination, _platlibdir, "python")
platlibdir = os.path.join(destination, _platlibdir, impl_name)
check_path(cmd.install_platlib, platlibdir)
check_path(cmd.install_purelib, libdir)
check_path(cmd.install_headers,
os.path.join(destination, "include", "python", "foopkg"))
os.path.join(destination, "include", impl_name, "foopkg"))
check_path(cmd.install_scripts, os.path.join(destination, "bin"))
check_path(cmd.install_data, destination)

Expand Down

0 comments on commit a64a054

Please sign in to comment.