Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
manugarg committed Nov 17, 2023
1 parent 6afc9a5 commit b4d2a72
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/pymod/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@
import sys

from unittest.mock import patch
import distutils
from setuptools import setup, Extension

import distutils.cmd
# import distutils
from setuptools import Command, setup, Extension

# import distutils.cmd


def setup_dir():
Expand Down Expand Up @@ -88,7 +89,7 @@ def pacparser_version():
return sanitize_version(os.environ.get("PACPARSER_VERSION", "1.0.0"))


class DistCmd(distutils.cmd.Command):
class DistCmd(Command):
"""Build pacparser python distribution."""

description = "Build pacparser python distribution."
Expand Down Expand Up @@ -126,7 +127,7 @@ def run(self):
)


@patch("distutils.cygwinccompiler.get_msvcr")
@patch("setuptools._distutils.cygwinccompiler.get_msvcr")
def main(patched_func):
python_home = os.path.dirname(sys.executable)

Expand Down

0 comments on commit b4d2a72

Please sign in to comment.