libftdi-git Archives

Subject: A library to talk to FTDI chips branch, master, updated. v1.5-41-gabd19b7

From: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Tue, 24 Oct 2023 17:34:17 +0200 (CEST)
The branch, master has been updated
       via  abd19b721f7e9b4d514ed319ece173ebc7b1ea72 (commit)
      from  ed8aad3c13e0952476c4a70761246938cea9c81e (commit)


- Log -----------------------------------------------------------------
commit abd19b721f7e9b4d514ed319ece173ebc7b1ea72
Author: Dan Horák <dan@xxxxxxxx>
Date:   Mon Dec 19 17:40:43 2022 +0100

    python: move from distutils to sysconfig
    
    The distutils module was deprecated in Python 3.10, and will be removed
    in 3.12 [1], thus switch to the sysconfig module instead.
    
    [1] https://peps.python.org/pep-0632/

-----------------------------------------------------------------------

Summary of changes:
 python/CMakeLists.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
index 5e406ff..9358419 100644
--- a/python/CMakeLists.txt
+++ b/python/CMakeLists.txt
@@ -42,7 +42,7 @@ endif ()
 
 set_target_properties ( ${SWIG_MODULE_ftdi1_REAL_NAME} PROPERTIES NO_SONAME ON 
)
 
-execute_process ( COMMAND ${PYTHON_EXECUTABLE} -c "from distutils import 
sysconfig; print( sysconfig.get_python_lib( plat_specific=True, 
prefix='${CMAKE_INSTALL_PREFIX}' ) )"
+execute_process ( COMMAND ${PYTHON_EXECUTABLE} -c "import sysconfig; print( 
sysconfig.get_path( 'platlib', vars={'platbase': '${CMAKE_INSTALL_PREFIX}'} ) )"
                   OUTPUT_VARIABLE _ABS_PYTHON_MODULE_PATH
                   OUTPUT_STRIP_TRAILING_WHITESPACE )
 


hooks/post-receive
-- 
A library to talk to FTDI chips

--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread
  • A library to talk to FTDI chips branch, master, updated. v1.5-41-gabd19b7, libftdi-git <=