Skip to content

Commit

Permalink
chore: Remove distutils (#4356)
Browse files Browse the repository at this point in the history
* remove distutils

Signed-off-by: tokoko <togurg14@freeuni.edu.ge>

* fix formatting

Signed-off-by: tokoko <togurg14@freeuni.edu.ge>

---------

Signed-off-by: tokoko <togurg14@freeuni.edu.ge>
  • Loading branch information
tokoko committed Jul 16, 2024
1 parent cdeab48 commit ce4f09b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
4 changes: 2 additions & 2 deletions sdk/python/feast/repo_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,8 @@ def cli_check_repo(repo_path: Path, fs_yaml_file: Path):

def init_repo(repo_name: str, template: str):
import os
from distutils.dir_util import copy_tree
from pathlib import Path
from shutil import copytree

from colorama import Fore, Style

Expand All @@ -412,7 +412,7 @@ def init_repo(repo_name: str, template: str):
template_path = str(Path(Path(__file__).parent / "templates" / template).absolute())
if not os.path.exists(template_path):
raise IOError(f"Could not find template {template}")
copy_tree(template_path, str(repo_path))
copytree(template_path, str(repo_path), dirs_exist_ok=True)

# Seed the repository
bootstrap_path = repo_path / "bootstrap.py"
Expand Down
19 changes: 6 additions & 13 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,14 @@
import shutil
import subprocess
import sys
from distutils.cmd import Command
from pathlib import Path

from setuptools import find_packages

try:
from setuptools import setup
from setuptools.command.build_ext import build_ext as _build_ext
from setuptools.command.build_py import build_py
from setuptools.command.develop import develop
from setuptools.command.install import install
from pathlib import Path

except ImportError:
from distutils.command.build_py import build_py
from distutils.core import setup
from setuptools import find_packages, setup, Command
from setuptools.command.build_ext import build_ext as _build_ext
from setuptools.command.build_py import build_py
from setuptools.command.develop import develop
from setuptools.command.install import install

NAME = "feast"
DESCRIPTION = "Python SDK for Feast"
Expand Down

0 comments on commit ce4f09b

Please sign in to comment.