mv all 3rdparty modules to specific dir and hide urlgrabber
authorJF Ding <Jian-feng.Ding@intel.com>
Thu, 15 Sep 2011 10:11:01 +0000 (19:11 +0900)
committerJF Ding <Jian-feng.Ding@intel.com>
Thu, 15 Sep 2011 10:11:01 +0000 (19:11 +0900)
urlgrabber module was only used by pykickstart without self reference,
so it can be moved inside pykickstart module dir. And then it will
avoid the potential conflict with system installed urlgrabber module.

e.g. In Fedora system, yum will require urlgrabber > 3.9

89 files changed:
mic/3rdparty/pykickstart/__init__.py [moved from mic/pykickstart/handlers/__init__.py with 100% similarity]
mic/3rdparty/pykickstart/base.py [moved from mic/pykickstart/base.py with 100% similarity]
mic/3rdparty/pykickstart/commands/__init__.py [moved from mic/pykickstart/commands/__init__.py with 100% similarity]
mic/3rdparty/pykickstart/commands/authconfig.py [moved from mic/pykickstart/commands/authconfig.py with 100% similarity]
mic/3rdparty/pykickstart/commands/autopart.py [moved from mic/pykickstart/commands/autopart.py with 100% similarity]
mic/3rdparty/pykickstart/commands/autostep.py [moved from mic/pykickstart/commands/autostep.py with 100% similarity]
mic/3rdparty/pykickstart/commands/bootloader.py [moved from mic/pykickstart/commands/bootloader.py with 100% similarity]
mic/3rdparty/pykickstart/commands/clearpart.py [moved from mic/pykickstart/commands/clearpart.py with 100% similarity]
mic/3rdparty/pykickstart/commands/device.py [moved from mic/pykickstart/commands/device.py with 100% similarity]
mic/3rdparty/pykickstart/commands/deviceprobe.py [moved from mic/pykickstart/commands/deviceprobe.py with 100% similarity]
mic/3rdparty/pykickstart/commands/displaymode.py [moved from mic/pykickstart/commands/displaymode.py with 100% similarity]
mic/3rdparty/pykickstart/commands/dmraid.py [moved from mic/pykickstart/commands/dmraid.py with 100% similarity]
mic/3rdparty/pykickstart/commands/driverdisk.py [moved from mic/pykickstart/commands/driverdisk.py with 100% similarity]
mic/3rdparty/pykickstart/commands/fcoe.py [moved from mic/pykickstart/commands/fcoe.py with 100% similarity]
mic/3rdparty/pykickstart/commands/firewall.py [moved from mic/pykickstart/commands/firewall.py with 100% similarity]
mic/3rdparty/pykickstart/commands/firstboot.py [moved from mic/pykickstart/commands/firstboot.py with 100% similarity]
mic/3rdparty/pykickstart/commands/group.py [moved from mic/pykickstart/commands/group.py with 100% similarity]
mic/3rdparty/pykickstart/commands/ignoredisk.py [moved from mic/pykickstart/commands/ignoredisk.py with 100% similarity]
mic/3rdparty/pykickstart/commands/interactive.py [moved from mic/pykickstart/commands/interactive.py with 100% similarity]
mic/3rdparty/pykickstart/commands/iscsi.py [moved from mic/pykickstart/commands/iscsi.py with 100% similarity]
mic/3rdparty/pykickstart/commands/iscsiname.py [moved from mic/pykickstart/commands/iscsiname.py with 100% similarity]
mic/3rdparty/pykickstart/commands/key.py [moved from mic/pykickstart/commands/key.py with 100% similarity]
mic/3rdparty/pykickstart/commands/keyboard.py [moved from mic/pykickstart/commands/keyboard.py with 100% similarity]
mic/3rdparty/pykickstart/commands/lang.py [moved from mic/pykickstart/commands/lang.py with 100% similarity]
mic/3rdparty/pykickstart/commands/langsupport.py [moved from mic/pykickstart/commands/langsupport.py with 100% similarity]
mic/3rdparty/pykickstart/commands/lilocheck.py [moved from mic/pykickstart/commands/lilocheck.py with 100% similarity]
mic/3rdparty/pykickstart/commands/logging.py [moved from mic/pykickstart/commands/logging.py with 100% similarity]
mic/3rdparty/pykickstart/commands/logvol.py [moved from mic/pykickstart/commands/logvol.py with 100% similarity]
mic/3rdparty/pykickstart/commands/mediacheck.py [moved from mic/pykickstart/commands/mediacheck.py with 100% similarity]
mic/3rdparty/pykickstart/commands/method.py [moved from mic/pykickstart/commands/method.py with 100% similarity]
mic/3rdparty/pykickstart/commands/monitor.py [moved from mic/pykickstart/commands/monitor.py with 100% similarity]
mic/3rdparty/pykickstart/commands/mouse.py [moved from mic/pykickstart/commands/mouse.py with 100% similarity]
mic/3rdparty/pykickstart/commands/multipath.py [moved from mic/pykickstart/commands/multipath.py with 100% similarity]
mic/3rdparty/pykickstart/commands/network.py [moved from mic/pykickstart/commands/network.py with 100% similarity]
mic/3rdparty/pykickstart/commands/partition.py [moved from mic/pykickstart/commands/partition.py with 100% similarity]
mic/3rdparty/pykickstart/commands/raid.py [moved from mic/pykickstart/commands/raid.py with 100% similarity]
mic/3rdparty/pykickstart/commands/reboot.py [moved from mic/pykickstart/commands/reboot.py with 100% similarity]
mic/3rdparty/pykickstart/commands/repo.py [moved from mic/pykickstart/commands/repo.py with 100% similarity]
mic/3rdparty/pykickstart/commands/rescue.py [moved from mic/pykickstart/commands/rescue.py with 100% similarity]
mic/3rdparty/pykickstart/commands/rootpw.py [moved from mic/pykickstart/commands/rootpw.py with 100% similarity]
mic/3rdparty/pykickstart/commands/selinux.py [moved from mic/pykickstart/commands/selinux.py with 100% similarity]
mic/3rdparty/pykickstart/commands/services.py [moved from mic/pykickstart/commands/services.py with 100% similarity]
mic/3rdparty/pykickstart/commands/skipx.py [moved from mic/pykickstart/commands/skipx.py with 100% similarity]
mic/3rdparty/pykickstart/commands/sshpw.py [moved from mic/pykickstart/commands/sshpw.py with 100% similarity]
mic/3rdparty/pykickstart/commands/timezone.py [moved from mic/pykickstart/commands/timezone.py with 100% similarity]
mic/3rdparty/pykickstart/commands/updates.py [moved from mic/pykickstart/commands/updates.py with 100% similarity]
mic/3rdparty/pykickstart/commands/upgrade.py [moved from mic/pykickstart/commands/upgrade.py with 100% similarity]
mic/3rdparty/pykickstart/commands/user.py [moved from mic/pykickstart/commands/user.py with 100% similarity]
mic/3rdparty/pykickstart/commands/vnc.py [moved from mic/pykickstart/commands/vnc.py with 100% similarity]
mic/3rdparty/pykickstart/commands/volgroup.py [moved from mic/pykickstart/commands/volgroup.py with 100% similarity]
mic/3rdparty/pykickstart/commands/xconfig.py [moved from mic/pykickstart/commands/xconfig.py with 100% similarity]
mic/3rdparty/pykickstart/commands/zerombr.py [moved from mic/pykickstart/commands/zerombr.py with 100% similarity]
mic/3rdparty/pykickstart/commands/zfcp.py [moved from mic/pykickstart/commands/zfcp.py with 100% similarity]
mic/3rdparty/pykickstart/constants.py [moved from mic/pykickstart/constants.py with 100% similarity]
mic/3rdparty/pykickstart/errors.py [moved from mic/pykickstart/errors.py with 100% similarity]
mic/3rdparty/pykickstart/handlers/__init__.py [moved from mic/pykickstart/__init__.py with 100% similarity]
mic/3rdparty/pykickstart/handlers/control.py [moved from mic/pykickstart/handlers/control.py with 100% similarity]
mic/3rdparty/pykickstart/handlers/f10.py [moved from mic/pykickstart/handlers/f10.py with 100% similarity]
mic/3rdparty/pykickstart/handlers/f11.py [moved from mic/pykickstart/handlers/f11.py with 100% similarity]
mic/3rdparty/pykickstart/handlers/f12.py [moved from mic/pykickstart/handlers/f12.py with 100% similarity]
mic/3rdparty/pykickstart/handlers/f13.py [moved from mic/pykickstart/handlers/f13.py with 100% similarity]
mic/3rdparty/pykickstart/handlers/f14.py [moved from mic/pykickstart/handlers/f14.py with 100% similarity]
mic/3rdparty/pykickstart/handlers/f15.py [moved from mic/pykickstart/handlers/f15.py with 100% similarity]
mic/3rdparty/pykickstart/handlers/f16.py [moved from mic/pykickstart/handlers/f16.py with 100% similarity]
mic/3rdparty/pykickstart/handlers/f7.py [moved from mic/pykickstart/handlers/f7.py with 100% similarity]
mic/3rdparty/pykickstart/handlers/f8.py [moved from mic/pykickstart/handlers/f8.py with 100% similarity]
mic/3rdparty/pykickstart/handlers/f9.py [moved from mic/pykickstart/handlers/f9.py with 100% similarity]
mic/3rdparty/pykickstart/handlers/fc3.py [moved from mic/pykickstart/handlers/fc3.py with 100% similarity]
mic/3rdparty/pykickstart/handlers/fc4.py [moved from mic/pykickstart/handlers/fc4.py with 100% similarity]
mic/3rdparty/pykickstart/handlers/fc5.py [moved from mic/pykickstart/handlers/fc5.py with 100% similarity]
mic/3rdparty/pykickstart/handlers/fc6.py [moved from mic/pykickstart/handlers/fc6.py with 100% similarity]
mic/3rdparty/pykickstart/handlers/rhel3.py [moved from mic/pykickstart/handlers/rhel3.py with 100% similarity]
mic/3rdparty/pykickstart/handlers/rhel4.py [moved from mic/pykickstart/handlers/rhel4.py with 100% similarity]
mic/3rdparty/pykickstart/handlers/rhel5.py [moved from mic/pykickstart/handlers/rhel5.py with 100% similarity]
mic/3rdparty/pykickstart/handlers/rhel6.py [moved from mic/pykickstart/handlers/rhel6.py with 100% similarity]
mic/3rdparty/pykickstart/ko.py [moved from mic/pykickstart/ko.py with 100% similarity]
mic/3rdparty/pykickstart/options.py [moved from mic/pykickstart/options.py with 100% similarity]
mic/3rdparty/pykickstart/parser.py [moved from mic/pykickstart/parser.py with 100% similarity]
mic/3rdparty/pykickstart/sections.py [moved from mic/pykickstart/sections.py with 100% similarity]
mic/3rdparty/pykickstart/urlgrabber/__init__.py [moved from mic/urlgrabber/__init__.py with 100% similarity]
mic/3rdparty/pykickstart/urlgrabber/byterange.py [moved from mic/urlgrabber/byterange.py with 100% similarity]
mic/3rdparty/pykickstart/urlgrabber/grabber.py [moved from mic/urlgrabber/grabber.py with 100% similarity]
mic/3rdparty/pykickstart/urlgrabber/keepalive.py [moved from mic/urlgrabber/keepalive.py with 100% similarity]
mic/3rdparty/pykickstart/urlgrabber/mirror.py [moved from mic/urlgrabber/mirror.py with 100% similarity]
mic/3rdparty/pykickstart/urlgrabber/progress.py [moved from mic/urlgrabber/progress.py with 100% similarity]
mic/3rdparty/pykickstart/urlgrabber/sslfactory.py [moved from mic/urlgrabber/sslfactory.py with 100% similarity]
mic/3rdparty/pykickstart/version.py [moved from mic/pykickstart/version.py with 100% similarity]
mic/__init__.py
setup.py

index 92649b9..63c1d9c 100644 (file)
@@ -1,3 +1,4 @@
 import os, sys
 
-sys.path.insert(0, os.path.dirname(__file__) or '.')
+cur_path = os.path.dirname(__file__) or '.'
+sys.path.insert(0, cur_path + '/3rdparty')
index 27bf713..088df8e 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -49,12 +49,12 @@ if sys.version_info[:2] > (2, 5):
 PACKAGES = [MOD_NAME,
             MOD_NAME + '/utils',
             MOD_NAME + '/imager',
-            MOD_NAME + '/urlgrabber',
             MOD_NAME + '/kickstart',
             MOD_NAME + '/kickstart/custom_commands',
-            MOD_NAME + '/pykickstart',
-            MOD_NAME + '/pykickstart/commands',
-            MOD_NAME + '/pykickstart/handlers',
+            MOD_NAME + '/3rdparty/pykickstart',
+            MOD_NAME + '/3rdparty/pykickstart/commands',
+            MOD_NAME + '/3rdparty/pykickstart/handlers',
+            MOD_NAME + '/3rdparty/pykickstart/urlgrabber',
            ]
 
 setup(name=MOD_NAME,