소스 검색

Reorder the build_py running commands

Kentaro Wada 9 년 전
부모
커밋
38cc94b0bb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      setup.py

+ 1 - 1
setup.py

@@ -13,13 +13,13 @@ version = '1.1.5'
 class LabelmeBuildPyCommand(BuildPyCommand):
 
     def run(self):
-        BuildPyCommand.run(self)
         this_dir = osp.dirname(osp.abspath(__file__))
         src = osp.join(this_dir, 'labelme/resources.qrc')
         dst = osp.join(this_dir, 'labelme/resources.py')
         cmd = 'pyrcc4 -o {1} {0}'.format(src, dst)
         print('converting {0} -> {1}'.format(src, dst))
         subprocess.call(shlex.split(cmd))
+        BuildPyCommand.run(self)
 
 
 try: