piskvorky / sqlitedict

Persistent dict, backed by sqlite3 and pickle, multithread-safe.
Apache License 2.0
1.17k stars 131 forks source link

distutils has been deprecated in Python 3.10 #142

Closed tirkarthi closed 3 years ago

tirkarthi commented 3 years ago

Using setuptools since it's already imported will help. Ref : https://www.python.org/dev/peps/pep-0632/#migration-advice

https://github.com/RaRe-Technologies/sqlitedict/blob/3f2df9bb557e3351bc16843612e9090d7f5ba784/setup.py#L20

piskvorky commented 3 years ago

@tirkarthi what's the replacement? Can you open a PR?

tirkarthi commented 3 years ago

Using setuptools which has the setup function is equivalent. Raised a PR https://github.com/RaRe-Technologies/sqlitedict/pull/143 . Verified it by running python setup.py install

python setup.py install                       
running install
running bdist_egg
running egg_info
creating sqlitedict.egg-info
writing sqlitedict.egg-info/PKG-INFO
writing dependency_links to sqlitedict.egg-info/dependency_links.txt
writing top-level names to sqlitedict.egg-info/top_level.txt
writing manifest file 'sqlitedict.egg-info/SOURCES.txt'
reading manifest file 'sqlitedict.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'sqlitedict.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
copying sqlitedict.py -> build/lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
copying build/lib/sqlitedict.py -> build/bdist.linux-x86_64/egg
byte-compiling build/bdist.linux-x86_64/egg/sqlitedict.py to sqlitedict.cpython-38.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying sqlitedict.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying sqlitedict.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying sqlitedict.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying sqlitedict.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/sqlitedict-1.7.0-py3.8.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing sqlitedict-1.7.0-py3.8.egg
Copying sqlitedict-1.7.0-py3.8.egg to /root/py38-venv/lib/python3.8/site-packages
Adding sqlitedict 1.7.0 to easy-install.pth file

Installed /root/py38-venv/lib/python3.8/site-packages/sqlitedict-1.7.0-py3.8.egg
Processing dependencies for sqlitedict==1.7.0
Finished processing dependencies for sqlitedict==1.7.0