Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble following packaging libraries tutorial - no dist generated #373

Closed
Michael-Yongshi opened this issue Jun 29, 2020 · 8 comments
Closed

Comments

@Michael-Yongshi
Copy link

Thank you for providing feedback on Python packaging!

To help us help you, please fill out as much of the following as you can. If a question is not relevant, feel free to skip it.

  1. What is your operating system and version?

Windows 10

  1. What is your Python version?

Python 3.6.8

  1. What version of pip do you have?

pip 20.1

  1. If following an online tutorial or guide, please provide a link to the page or section giving you trouble:

https://packaging.python.org/tutorials/packaging-projects/

  1. Could you describe your issue in as much detail as possible?
    Guide worked fine until actually using setuptools and wheels to generated distributable. No text was generated and no dist files were found, like it never run in the first place.
@uranusjr
Copy link
Member

What happens if you just run python or python setup.py?

@Michael-Yongshi
Copy link
Author

i get this

E:\Git\packaging_tutorial>python
Python 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 24 2018, 00:16:47) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> python setup.py
  File "<stdin>", line 1
    python setup.py
               ^
SyntaxError: invalid syntax
>>>

@kethan1
Copy link

kethan1 commented Jun 29, 2020

run python setup.py in the terminal

@Michael-Yongshi
Copy link
Author

Michael-Yongshi commented Jun 29, 2020

PS E:\Git\packaging_tutorial> python setup.py
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: no commands supplied
PS E:\Git\packaging_tutorial>
PS E:\Git\packaging_tutorial> python3 setup.py sdist bdist_wheel
PS E:\Git\packaging_tutorial>

@merwok
Copy link

merwok commented Jun 29, 2020

Did that latest command not create a wheel and an sdist in a dist directory?

@Michael-Yongshi
Copy link
Author

nope

@uranusjr
Copy link
Member

What happens if you simply run python3? I suspect python.exe and python3.exe are pointing to different executables on your machine. Most likely, the latter is pointing to Microsoft’s Python stub, which sliently does nothing when you pass arguments to it. Simply running python3 will open the Windows Store page of Python if my assumption is correct.

Try running python setup.py sdist bdist_wheel if this is the case. The python command seems to work fine, judging from previous information you gave.

@Michael-Yongshi
Copy link
Author

yeah that works, so i was just using the wrong python command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants