Open desert-sailor opened 1 year ago
Flit doesn't create a build
directory itself - I can clone build and run flit build
on it fine. So the general problem here is that if you have a project with a src/X
package, then you create an X
folder (or X.py
file) next to the src/
folder, Flit refuses to build because it doesn't know whether X
or src/X
is the package you want. Presumably you've hit this on build because some other piece of infrastructure creates a build directory.
This is by design - Flit can do the right thing for 4 different basic layouts automatically:
But it expects that you'll resolve ambiguities by getting rid of the 'wrong' files and re-running it, which presumably isn't practical in whatever larger build process you're doing. Maybe we need an environment variable or something to tell Flit 'this is the location of the module'.
the log is blow: