Skip to content

Commit

Permalink
Remove usage of distutils
Browse files Browse the repository at this point in the history
`distutils` was removed in Python 3.12, causing litepcie to crash when
trying to use it.
  • Loading branch information
Liamolucko committed Aug 14, 2024
1 parent 21da327 commit f8b1599
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions litepcie/software/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from distutils.dir_util import copy_tree
from shutil import copytree

from litex.build import tools

Expand All @@ -8,7 +8,7 @@

def copy_litepcie_software(dst):
src = os.path.abspath(os.path.dirname(__file__))
copy_tree(src, dst)
copytree(src, dst, dirs_exist_ok=True)

def generate_litepcie_software_headers(soc, dst):
csr_header = get_csr_header(soc.csr_regions, soc.constants, with_access_functions=False)
Expand Down

0 comments on commit f8b1599

Please sign in to comment.