F
F
frenchman1452020-02-07 11:37:02
Python
frenchman145, 2020-02-07 11:37:02

Can you please explain how setup.py and distutils work?

If I understand correctly, then distutils is a module that allows you to build your own modules, so that in the future people can install them with the usual line "pip install ...", and setup.py is a python file that just produces this a simple Installation? Did I understand everything correctly or not, please explain.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Pankov, 2020-02-07
@frenchman145

Not really. setup.py is more of a file that describes your package so that distutils knows how to install it, what dependencies it has, who the author is, what are the entry points, and so on.
Here is an excellent article on Habré how to make the perfect package: https://habr.com/ru/post/483512/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question