Adopt the following logic (pseudo code): ```nim if srcDir == "": installDirs = @[pkgName]; installFiles = @[pkgName.addFileExt("nim")] ``` For packages such as [asyncmysql](https://github.com/tulayang/asyncmysql) this will fix the warnings without costing the packager any effort.