将生成的控制盘文件复制到目标

2024-09-24 20:28:20 发布

您现在位置:Python中文网/ 问答频道 /正文

我有以下几点setup.py

"""
Based on:
https://packaging.python.org/guides/distributing-packages-using-setuptools/
https://github.com/pypa/sampleproject
"""

# Always prefer setuptools over distutils
from setuptools import setup, find_packages
import os
# io.open is needed for projects that support Python 2.7
# It ensures open() defaults to text mode with universal newlines,
# and accepts an argument to specify the text encoding
# Python 3 only projects can skip this import
from io import open

from ReePlexos.__version__ import ReePlexos_version

here = os.path.abspath(os.path.dirname(__file__))

base_path = os.path.join('ReePlexos')
docs_folder = os.path.join(base_path, 'docs')
packages = find_packages(exclude=['docs', 'test', 'research', 'tests'])
package_data = {}

dependencies = ["PySide2>=5.13",
                "numpy>=1.14.0",
                "scipy>=1.0.0",
                "networkx>=2.1",
                "pandas>=0.22",
                "xlwt>=1.3.0",
                "xlrd>=1.1.0",
                "matplotlib>=2.1.1",
                "qtconsole>=4.3.1",
                "pyDOE>=0.3.8",
                "pySOT>=0.2.1",
                "openpyxl>=2.4.9",
                "pulp>=1.6.8",
                "smopy>=0.0.6",
                "chardet>=3.0.4",
                "scikit-learn>=0.18",
                "geopy>=1.16",
                "pytest>=3.8",
                "h5py>=2.9.0",
                "GridCal>=3.5.7",
                "Folium",
                "sphinx",
                "nose",
                "numba>=0.4",
                "pytest",
                "wheel"]

setup(
    name='ReePlexos',  # Required
    version=ReePlexos_version,  # Required
    packages=packages, 
    include_package_data=False,
    python_requires='>=3.5',
    install_requires=dependencies,
    package_data=package_data,
)

我用python3 setup.py bdist_wheel调用这个设置,以便创建.whl文件

安装程序生成名为ReePlexos-0.9.7-py3-none-any.whl的文件

我想将生成的控制盘文件复制到另一个不是dist的文件夹中。我怎么做


Tags: 文件pathfrompyimportdocspackagedata
1条回答
网友
1楼 · 发布于 2024-09-24 20:28:20

使用 dist-dir选项。请参阅bdist_wheel命令的帮助消息以获取参考:

$ ./setup.py bdist_wheel  help
...
   dist-dir (-d)   directory to put final built distributions in
...

相关问题 更多 >