Why I need DUB? Will never DMD don't just use import for import packages?

Andre Pany andre at s-e-a-p.de
Mon Mar 29 19:31:18 UTC 2021


On Monday, 29 March 2021 at 19:21:34 UTC, Marcone wrote:
> On Monday, 29 March 2021 at 19:14:41 UTC, Andre Pany wrote:
>> On Monday, 29 March 2021 at 19:06:33 UTC, Marcone wrote:
>>> Why can't I just use: import vibe.vibe; for import packages 
>>> like Nim or Python? Why I still use DUB?
>>
>> In python you also have pip.
>>
>> It is possible to use vibe.d (any dub package) without dub but 
>> you have a few manual steps involved.
>>
>> Kind regards
>> Andre
>
> Python dont need pip for run script with imported module. Just 
> need call python.

Same as for D. You can just use dub for downloading the packages 
and then use DMD with the correct import paths arguments/ 
switches / additional arguments.
The analogy here is the setup.py where you configure your 
dependencies in python.

Kind regards
Andre


More information about the Digitalmars-d-learn mailing list