Hello,

I'm writing setup.py for my Python package. I use python 3.4 and setuptools because in official The documentation says that distutils is now legacy.

My package uses the console program mytools.exe. When installing the package, I need to download the latest version of this console program.

In official the setuptools documentation I don’t see any parameters that allow you to specify a custom function in which I could write the download mytools.exe.

Are there standard ways to solve my problem?

    1 answer 1

    Use dependency_links . This mechanism is designed to download and install files that are not Python modules.

     from setuptools import setup setup( # ... dependency_links = [ "http://server.with.your.file.com/download/mytools.exe", ], ) 

    More details:

    • Thanks for that! Is it possible to specify a folder where to save the tool? If so, can you correct your answer? I do not see a way yet, because dependency_links is a list - sys_dev
    • @sys_dev: no, as far as I know, you cannot specify - Igor Chubin