calm-ambulance-65371
10/08/2020, 10:50 PMhundreds-father-404
10/08/2020, 11:15 PMhundreds-father-404
10/08/2020, 11:18 PMsetup.py
is in the same directory as where you declare your cython_library
. You can make this assumption explicit by implementing the method validate_resolved_files()
on `CythonSources`:
def validate_resolved_files(self, files: Sequence[str]) -> None:
super().validate_resolved_files(files)
if os.path.join(self.address.spec_path, "setup.py") not in files:
raise InvalidFieldException(...)
hundreds-father-404
10/09/2020, 7:32 PMwitty-crayon-22786
10/26/2020, 5:56 PM