setup: Undo previous file search changes

They were totally busted
This commit is contained in:
Cole Robinson 2019-06-17 01:27:08 -04:00
parent fab6b9ef78
commit 5ef458a428

View File

@ -663,16 +663,6 @@ class VMMDistribution(distutils.dist.Distribution):
distutils.dist.Distribution.__init__(self, *args, **kwargs) distutils.dist.Distribution.__init__(self, *args, **kwargs)
def _py_files(directory):
paths = []
for (path, directories, filenames) in os.walk(directory):
dummy = directories
for filename in filenames:
if filename.endswith(".py"):
paths.append(os.path.join('..', path, filename))
return paths
distutils.core.setup( distutils.core.setup(
name="virt-manager", name="virt-manager",
version=VERSION, version=VERSION,
@ -709,10 +699,25 @@ distutils.core.setup(
"man/virt-xml.1" "man/virt-xml.1"
]), ]),
("share/virt-manager/virtManager", _py_files("virtManager")), ("share/virt-manager/virtManager", glob.glob("virtManager/*.py")),
("share/virt-manager/virtManager/details",
glob.glob("virtManager/details/*.py")),
("share/virt-manager/virtManager/device",
glob.glob("virtManager/device/*.py")),
("share/virt-manager/virtManager/lib",
glob.glob("virtManager/lib/*.py")),
("share/virt-manager/virtManager/object",
glob.glob("virtManager/object/*.py")),
("share/virt-manager/virtinst", ("share/virt-manager/virtinst",
_py_files("virtinst") + glob.glob("virtinst/build.cfg")), glob.glob("virtinst/*.py") + glob.glob("virtinst/build.cfg")),
("share/virt-manager/virtconv", _py_files("virtconv")), ("share/virt-manager/virtinst/devices",
glob.glob("virtinst/devices/*.py")),
("share/virt-manager/virtinst/domain",
glob.glob("virtinst/domain/*.py")),
("share/virt-manager/virtinst/install",
glob.glob("virtinst/install/*.py")),
("share/virt-manager/virtconv",
glob.glob("virtconv/*.py")),
], ],
cmdclass={ cmdclass={