Currently generated requirements and constraints files are expected in the same folder as the in-files.
Support foreign folders by using os.path.relpath for target file path generation.
This also requires parsing entries in requirements-in file and modifying the install target if it points to a path, which might be the most tricky part when adding this feature.