开发者

Not install all files in site_packages using setup.py

开发者 https://www.devze.com 2023-03-04 13:01 出处:网络
When i install software(XYZ) using setup.py file using command \"python setup.py install\" it copy only files present in parent directory to the folder present in site_packages/XYZ .in setup file i de

When i install software(XYZ) using setup.py file using command "python setup.py install" it copy only files present in parent directory to the folder present in site_packages/XYZ .in setup file i define all packages and data_files which i want to use. Software package structure

XYZ
   __init__.py
   main.py
   test1.py
   vector
         __init__.py
         vector1.py
         vector2.py
   exlib
        __init__.py
        lib1.p开发者_JS百科y
        lib2.py

when install using setup.py install command it copy only main.py,test1.py files in XYZ folder present in site_packages . i want to copy all files present in xyz folder when i run install command . how i modify setup file or any other way to do this.


It sounds like your setup.py needs to have:

packages=['vector', 'exlib'],
0

精彩评论

暂无评论...
验证码 换一张
取 消