我试着造一个万向轮,但它滚走了

I try to build a universal wheel, but it rolls away

我运行:

python3 setup.py bdist_wheel --universal

它说它正在制作各种东西,但结果目录 (build/bdist.macosx-10.10-x86_64) 是空的。我的车轮滚到哪里去了?t

编辑

我现在看到我正在尝试查看临时输出。当我指定-d时,果然在指定位置有一个轮子。 -d 有默认值吗?我的轮子一直停在我眼皮底下吗?

running bdist_wheel
running build
running build_py
running egg_info
writing dependency_links to rosapi_launcher.egg-info/dependency_links.txt
writing top-level names to rosapi_launcher.egg-info/top_level.txt
writing rosapi_launcher.egg-info/PKG-INFO
writing requirements to rosapi_launcher.egg-info/requires.txt
reading manifest file 'rosapi_launcher.egg-info/SOURCES.txt'
writing manifest file 'rosapi_launcher.egg-info/SOURCES.txt'
installing to build/bdist.macosx-10.10-x86_64/wheel
running install
running install_lib
creating build/bdist.macosx-10.10-x86_64/wheel
creating build/bdist.macosx-10.10-x86_64/wheel/launcher
copying build/lib/launcher/__init__.py -> build/bdist.macosx-10.10-x86_64/wheel/launcher
copying build/lib/launcher/containers.py -> build/bdist.macosx-10.10-x86_64/wheel/launcher
copying build/lib/launcher/launcher.py -> build/bdist.macosx-10.10-x86_64/wheel/launcher
copying build/lib/launcher/prop_file.py -> build/bdist.macosx-10.10-x86_64/wheel/launcher
copying build/lib/launcher/properties.py -> build/bdist.macosx-10.10-x86_64/wheel/launcher
copying build/lib/launcher/snapshots.py -> build/bdist.macosx-10.10-x86_64/wheel/launcher
copying build/lib/launcher/utils.py -> build/bdist.macosx-10.10-x86_64/wheel/launcher
running install_egg_info
Copying rosapi_launcher.egg-info to build/bdist.macosx-10.10-x86_64/wheel/rosapi_launcher-0.0.1-py3.4.egg-info
running install_scripts
creating build/bdist.macosx-10.10-x86_64/wheel/rosapi_launcher-0.0.1.dist-info/WHEEL

我的 setup.py 是:

from setuptools import setup
import io
import os
import launcher

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

# noinspection PyPackageRequirements
def read(*filenames, **kwargs):
    encoding = kwargs.get('encoding', 'utf-8')
    sep = kwargs.get('sep', '\n')
    buf = []
    for filename in filenames:
        with io.open(filename, encoding=encoding) as f:
            buf.append(f.read())
    return sep.join(buf)

long_description = read('README.txt', 'CHANGES.txt')

setup(
    name='rosapi-launcher',
    version=launcher.__version__,
    install_requires=['pyaml',
                      'boto3'
                      ],
    description='RosAPI launcher',
    long_description=long_description,
    packages=['launcher'],
    include_package_data=True,
    platforms='any',
    classifiers = [
        'Programming Language :: Python',
        'Natural Language :: English'
    ]
)

我找到的答案是这样的:

python3 setup.py bdist_wheel

不把结果写在任何地方可以找到它们。

python3 setup.py bdist_wheel -d .

就写在这里吧。

如果我没看错,请在 ./build/... 目录中搜索生成的 .whl 文件。但是生成的文件,包括源代码分发和 wheel,通常默认情况下会在 ./dist/ 目录中创建,该目录位于 build 目录附近。你在那里搜索过吗?