mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-23 17:34:21 +03:00
setup: Undo previous file search changes
They were totally busted
This commit is contained in:
parent
fab6b9ef78
commit
5ef458a428
31
setup.py
31
setup.py
@ -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={
|
||||||
|
Loading…
Reference in New Issue
Block a user