CybOXProject / mixbox

A library of common code leveraged by python-cybox, python-maec, and python-stix
BSD 3-Clause "New" or "Revised" License
8 stars 15 forks source link

Remove distutils - deprecated in python 3.10 - removed in python 3.12 #52

Open parthatom opened 5 months ago

parthatom commented 5 months ago

I'm trying to use python-stix which relies on mixbox. However, this mixbox still relies on distutils in it's parser.

However, distutils has been deprecated since python 3.10 and has been officially removed from python 3.12 [python3.10/distutils].

This thread on stackoverflow has a more detailed discussion on how to replace distutils via setuptools.

Since, mixbox/parser.py uses distutils just for checking/managing versions, I believe this should be a quick fix.

sparrowt commented 2 months ago

https://github.com/CybOXProject/mixbox/pull/54