setuptools | Official project repository for the Setuptools build system

 by   pypa Python Version: 70.1.0 License: MIT

kandi X-RAY | setuptools Summary

kandi X-RAY | setuptools Summary

setuptools is a Python library. setuptools has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has high support. You can install using 'pip install setuptools' or download it from GitHub, PyPI.

Official project repository for the Setuptools build system
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              setuptools has a highly active ecosystem.
              It has 2042 star(s) with 1020 fork(s). There are 91 watchers for this library.
              There were 2 major release(s) in the last 6 months.
              There are 547 open issues and 1756 have been closed. On average issues are closed in 422 days. There are 22 open pull requests and 0 closed requests.
              OutlinedDot
              It has a negative sentiment in the developer community.
              The latest version of setuptools is 70.1.0

            kandi-Quality Quality

              setuptools has 0 bugs and 0 code smells.

            kandi-Security Security

              setuptools has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              setuptools code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              setuptools is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              setuptools releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              It has 54535 lines of code, 5203 functions and 340 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed setuptools and discovered the below as its top functions. This is intended to give you an instant insight into setuptools implemented functionality, and help decide if they suit your requirements.
            • Setup UI .
            • Generate a specification file for the RPM
            • Initialize this class .
            • Upload a file
            • Runs the given tests with comments .
            • Send the metadata .
            • Read the next line from the file .
            • Indent a block statement .
            • Infix notation
            • Parses a file and returns its contents .
            Get all kandi verified functions for this library.

            setuptools Key Features

            No Key Features are available at this moment for setuptools.

            setuptools Examples and Code Snippets

            "Eggsecutable" Scripts
            Pythondot img1Lines of Code : 8dot img1License : Permissive (MIT)
            copy iconCopy
            setup(
                # other arguments here...
                entry_points={
                    "setuptools.installation": [
                        "eggsecutable = my_package.some_module:main_func",
                    ]
                }
            )
              
            Setuptools Integration
            Pythondot img2Lines of Code : 0dot img2License : Permissive (BSD-3-Clause)
            copy iconCopy
            The first module is not called by its actual name, but the
            interpreter renames it to ``__main__``.  While that is a perfectly
            valid name it means that if another piece of code wants to import from
            that module it will trigger the import a second time   
            Setuptools Integration-Introduction
            Pythondot img3Lines of Code : 0dot img3License : Permissive (BSD-3-Clause)
            copy iconCopy
            yourscript.py
            setup.py
            import click
            @click.command()
            def cli():
                """Example script."""
                click.echo('Hello World!')
            from setuptools import setup
            setup(
                name='yourscript',
                version='0.1.0',
                py_modules=['yourscript'],
                install_requir  
            tox refuses to use deps setting in py38 and various pip problems
            Pythondot img4Lines of Code : 44dot img4License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            building 'psycopg2.\_psycopg' extension
            creating build/temp.linux-x86_64-3.9
            creating build/temp.linux-x86_64-3.9/psycopg
            x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-st
            tox refuses to use deps setting in py38 and various pip problems
            Pythondot img5Lines of Code : 2dot img5License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            py38 inst-nodeps: /home/dafrandle/PycharmProjects/djangoProject/.tox/.tmp/package/1/UNKNOWN-0.0.0.tar.gz
            
            Docker Build Fails at "locate package python-pydot"
            Pythondot img6Lines of Code : 20dot img6License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            
            FROM openjdk:8
            
            RUN apt-get update && apt-get install -y python3 python3-pip
            
            RUN apt-get -y install python3-pydot python3-pydot-ng graphviz
            RUN apt-get -y install python3-tk
            RUN apt-get -y install zip unzip
            RUN apt-get -y install
            Cannot install pyhash -- syntax error in fnv.h
            Pythondot img7Lines of Code : 2dot img7License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            pip install git+https://github.com/flier/pyfasthash
            
            How to properly include data folder to python package
            Pythondot img8Lines of Code : 2dot img8License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            package_data={'my_pkg' :['my_pkg/resources/nltk_data/*']}
            
            What is the replacement for distutils.util.get_platform()?
            Pythondot img9Lines of Code : 3dot img9License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            import sysconfig
            sysconfig.get_platform()
            
            SyntaxError: multiple exception types must be parenthesized - comtypes
            Pythondot img10Lines of Code : 5dot img10License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            pip install setuptools==57.0.0 --force-reinstall
            pip install wheel==0.36.2 --force-reinstall
            pip uninstall comtypes
            pip install --no-cache-dir comtypes
            

            Community Discussions

            QUESTION

            PIP failed to build package cytoolz
            Asked 2022-Mar-26 at 18:26

            I'm trying to install eth-brownie using 'pipx install eth-brownie' but I get an error saying

            ...

            ANSWER

            Answered 2022-Jan-02 at 09:59

            I used pip install eth-brownie and it worked fine, I didnt need to downgrade. Im new to this maybe I could be wrong but it worked fine with me.

            Source https://stackoverflow.com/questions/69875694

            QUESTION

            How to install a package using pip in editable mode with pyproject.toml?
            Asked 2022-Mar-19 at 23:06

            When a project is specified only via pyproject.toml (i.e. no setup.{py,cfg} files), how can it be installed in editable mode via pip (i.e. python -m pip install -e .)?

            I tried both setuptools and poetry for the build system, but neither worked:

            ...

            ANSWER

            Answered 2022-Mar-19 at 23:06

            PEP 660 – Editable installs for pyproject.toml based builds defines how to build projects that only use pyproject.toml. Build tools must implement PEP 660 for editable installs to work. You need a front-end (such as pip ≥ 21.3), backend. The statuses of some popular backends are:

            Source https://stackoverflow.com/questions/69711606

            QUESTION

            module 'numpy.distutils.__config__' has no attribute 'blas_opt_info'
            Asked 2022-Mar-17 at 10:50

            I'm trying to study the neural-network-and-deep-learning (http://neuralnetworksanddeeplearning.com/chap1.html). Using the updated version for Python 3 by MichalDanielDobrzanski (https://github.com/MichalDanielDobrzanski/DeepLearningPython). Tried to run it in my command console and it gives an error below. I've tried uninstalling and reinstalling setuptools, theano, and numpy but none have worked thus far. Any help is very appreciated!!

            Here's the full error log:

            ...

            ANSWER

            Answered 2022-Feb-17 at 14:12

            I had the same issue and solved it downgrading numpy to version 1.20.3 by:

            Source https://stackoverflow.com/questions/70839312

            QUESTION

            how to use release branch to increment version using setuptools_scm?
            Asked 2022-Mar-16 at 08:51

            I am looking at https://github.com/pypa/setuptools_scm

            and I read this part https://github.com/pypa/setuptools_scm#version-number-construction

            and i quote

            Semantic versioning for projects with release branches. The same as guess-next-dev (incrementing the pre-release or micro segment) if on a release branch: a branch whose name (ignoring namespace) parses as a version that matches the most recent tag up to the minor segment. Otherwise if on a non-release branch, increments the minor segment and sets the micro segment to zero, then appends .devN.

            How does this work?

            Assuming my setup is at this commit https://github.com/simkimsia/test-setup-py/commit/5ebab14b16b63090ad0554ad8f9a77a28b047323

            and the same repo, how do i increment the version by branching?

            What i tried on 2022-03-15

            I updated some files on main branch.

            Then i did the following

            ...

            ANSWER

            Answered 2022-Mar-13 at 15:39

            If I'm reading the docs correctly, this likely means you are supposed to create branches like so (assuming your current version is 0.x):

            Source https://stackoverflow.com/questions/71090408

            QUESTION

            Error while downloading the requirements using pip install (setup command: use_2to3 is invalid.)
            Asked 2022-Mar-05 at 07:13

            version pip 21.2.4 python 3.6

            The command:

            ...

            ANSWER

            Answered 2021-Nov-19 at 13:30

            It looks like setuptools>=58 breaks support for use_2to3:

            setuptools changelog for v58

            So you should update setuptools to setuptools<58 or avoid using packages with use_2to3 in the setup parameters.

            I was having the same problem, pip==19.3.1

            Source https://stackoverflow.com/questions/69100275

            QUESTION

            unable to install pyodbc using python 3.10 in windows 10
            Asked 2022-Feb-24 at 20:07

            I get this Error when I try to install Pyodbc , I have already install visual studio and I have Microsoft Visual C++ 12 , 15-19 in my machine but still its giving this error.

            ...

            ANSWER

            Answered 2021-Nov-12 at 13:38

            The current release of pyodbc (4.0.32) does not have pre-built wheel files for Python 3.10. The easiest way to get it installed at the moment is to download the appropriate wheel from

            https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyodbc

            and then install it. For example, if you are running 64-bit Python then you would download the 64-bit wheel and use

            Source https://stackoverflow.com/questions/69943254

            QUESTION

            Django mod_wsgi Apache Server, ModuleNotFoundError: No Module Named Django
            Asked 2022-Feb-09 at 21:35

            I read ton of articles, but still can't figure out what I'm missing. I'm running a django website from virtualenv. Here's my config file. The website address is replaced by , can't use that here.

            Config

            ...

            ANSWER

            Answered 2021-Sep-23 at 15:28

            The error says that either you haven't got Django installed or didn't activate the virtual environment in which the Django was installed. Make sure that you check the list of installed packages and find Django in there, via:

            Source https://stackoverflow.com/questions/69302698

            QUESTION

            Running into an error when trying to pip install python-docx
            Asked 2022-Feb-06 at 17:04

            I just did a fresh install of windows to clean up my computer, moved everything over to my D drive and installed Python through Windows Store (somehow it defaulted to my C drive, so I left it there because Pycharm was getting confused about its location), now I'm trying to pip install the python-docx module for the first time and I'm stuck. I have a recent version of Microsoft C++ Visual Build Tools installed. Excuse me for any irrelevant information I provided, just wishing to be thorough. Here's what's returning in command:

            ...

            ANSWER

            Answered 2022-Feb-06 at 17:04

            One of the dependencies for python-docx is lxml. The latest stable version of lxml is 4.6.3, released on March 21, 2021. On PyPI there is no lxml wheel for 3.10, yet. So it try to compile from source and for that Microsoft Visual C++ 14.0 or greater is required, as stated in the error.

            However you can manually install lxml, before install python-docx. Download and install unofficial binary from Gohlke Alternatively you can use pipwin to install it from Gohlke. Note there may still be problems with dependencies for lxml.

            Of course, you can also downgrade to python3.9.

            EDIT: As of 14 Dec 2021 the latest lxml version 4.7.1 supports python 3.10

            Source https://stackoverflow.com/questions/69687604

            QUESTION

            How to specify requirements in Python packages metadata
            Asked 2021-Nov-03 at 22:51

            Core metadata specification documents the metadata field Requires-External which seems to be for specifying system (non-python) dependencies.

            How do you actually specify this field though? This is what I've tried:

            ...

            ANSWER

            Answered 2021-Nov-03 at 22:51

            So what is the syntax to pass Requires-External to setuptools/distutils?

            There is none by default, as neither distutils nor setuptools support the field. Also, requires_external keyword arg is not supported as well - it is silently ignored, just as any other unknown keyword arg.

            To add local support for requires_external kwarg, you need to provide your own distribution implementation. Minimal example (requires Python 3.9):

            Source https://stackoverflow.com/questions/69812523

            QUESTION

            Error installing scipy in Python 3.10 on Windows10
            Asked 2021-Nov-03 at 16:07

            I have install Python 3.10 on Windows 10.

            Then I installed numpy and matplotlib without problem.

            But when I try to install scipy, I get a ton of errors.

            The install sequence is below.

            Is this related to needing MKL/BLAS libraries? If so, what should I install?

            ...

            ANSWER

            Answered 2021-Oct-31 at 13:24

            In scipy's PyPI page, it looks like scipy doesn't support 3.10 as the meta says

            Source https://stackoverflow.com/questions/69787249

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install setuptools

            You can install using 'pip install setuptools' or download it from GitHub, PyPI.
            You can use setuptools like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install setuptools

          • CLONE
          • HTTPS

            https://github.com/pypa/setuptools.git

          • CLI

            gh repo clone pypa/setuptools

          • sshUrl

            git@github.com:pypa/setuptools.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link