Split from #3058, as @rickeylev suggested a method:
Create an sdist_from_dir repo rule similar to whl_from_dir. Just something simple to tar.gz everything. Then feed that into the whl_library machinery. Restrict the test to mac/linux if windows is problematic.
Split from #3058, as @rickeylev suggested a method: