Skip to content

Commit

Permalink
Remove usage of deprecated distutils. Fixes #188.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Nov 10, 2021
1 parent 2929621 commit 51dc0e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytest-virtualenv/pytest_virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"""
import os
import sys
from distutils import sysconfig

from pytest import yield_fixture
from pkg_resources import working_set
Expand Down Expand Up @@ -197,7 +196,8 @@ def install_package(self, pkg_name, installer='easy_install', build_egg=None):
'src_dir': pkg.location,
'name': pkg.project_name,
'version': pkg.version,
'pyversion': sysconfig.get_python_version(),
'pyversion': '{sys.version_info[0]}.{sys.version_info[1]}'
.format(**globals()),
}

d['egg_file'] = Path(pkg.location) / 'dist' / ('%(name)s-%(version)s-py%(pyversion)s.egg' % d)
Expand Down

0 comments on commit 51dc0e5

Please sign in to comment.