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

Where's setup.py gone? #820

Closed
brobr opened this issue Oct 11, 2021 · 5 comments
Closed

Where's setup.py gone? #820

brobr opened this issue Oct 11, 2021 · 5 comments
Labels
support Users asking for help using twine

Comments

@brobr
Copy link

brobr commented Oct 11, 2021

Your Environment

Thank you for taking the time to report an issue.

To more efficiently resolve this issue, we'd like to know some basic information about your system and setup.

  1. Your operating system:
    Slackware linux current64 (15.0rc)
  2. Version of python you are running:
  1. How did you install twine? Did you use your operating system's package manager or pip or something else?
    Install failed via build script (see below)
  2. Version of twine you have installed (include complete output of):
    tried to upgrade to version 3.4.2 from 3.2.0
  3. Which package repository are you targeting?
    none; just building twine

The Issue

Please describe the issue that you are experiencing.

Using a buildscript based around the command python3 setup.py install. failed:

python3: can't open file '/tmp/SBo/twine-3.4.2/setup.py': [Errno 2] No such file or directory

Steps to Reproduce

If the issue is predictable and consistently reproducible, please list the steps here.

@brobr brobr changed the title Where's setup.py gone Where's setup.py gone? Oct 11, 2021
@bhrutledge
Copy link
Contributor

Sorry to hear that you're having trouble. setup.py was removed in #757 (which explains the reasoning).

Are you using python3 setup.py install to install Twine from source? If so, the preferred approach is to use pip to install the package from the current directory:

python3 -m pip install -U .

If you run into trouble there, check your version of pip, and upgrade if necessary:

python3 -m pip --version

python3 -m pip install -U pip

@bhrutledge bhrutledge added the support Users asking for help using twine label Oct 11, 2021
@sigmavirus24
Copy link
Member

Other linux distributions now build the wheel in order to install from a source distribution, e.g., Fedora: https://src.fedoraproject.org/rpms/python-twine/blob/51921fdf414394643792d3cf7429b02f64bdce7b/f/python-twine.spec#_65 You can use python -m build instead of pyproject as documented there

@brobr
Copy link
Author

brobr commented Oct 11, 2021 via email

@brobr
Copy link
Author

brobr commented Oct 11, 2021 via email

@sigmavirus24
Copy link
Member

@brobr I'm a Slackware user too. Unfortunately, the rest of the world moves much faster to improve upon what exists for the benefit of all rather than cater to those who refuse to accept progress. RHEL supports far larger installation bases for far longer and manages to keep up with volunteer package managers.

Many of the tools you reference have existed for years if not over a decade. That's way more time than Slack 15 has been in development.

What may seem like well enough to you is broken for many more. I suggest that if you can't handle moving onto tooling that's been around and stable and is the best practice, then maybe use older versions. Otherwise, your hostility will not be tolerated

@pypa pypa locked and limited conversation to collaborators Oct 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
support Users asking for help using twine
Projects
None yet
Development

No branches or pull requests

3 participants