setup.py | 📦 A Human 's Ultimate Guide to setup.py

 by   navdeep-G Python Version: Current License: MIT

kandi X-RAY | setup.py Summary

kandi X-RAY | setup.py Summary

setup.py is a Python library. setup.py has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has high support. You can download it from GitHub.

This repo exists to provide [an example setup.py] file, that can be used to bootstrap your next Python project. It includes some advanced patterns and best practices for setup.py, as well as some commented–out nice–to–haves. For example, this setup.py provides a $ python setup.py upload command, which creates a universal wheel (and sdist) and uploads your package to [PyPi] using [Twine], without the need for an annoying setup.cfg file. It also creates/uploads a new git tag, automatically. In short, setup.py files can be daunting to approach, when first starting out — even Guido has been heard saying, "everyone cargo cults thems". It’s true — so, I want this repo to be the best place to copy–paste from :).
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              setup.py has a highly active ecosystem.
              It has 5037 star(s) with 573 fork(s). There are 94 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 5 open issues and 27 have been closed. On average issues are closed in 89 days. There are 4 open pull requests and 0 closed requests.
              OutlinedDot
              It has a negative sentiment in the developer community.
              The latest version of setup.py is current.

            kandi-Quality Quality

              setup.py has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              setup.py 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

              setup.py releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              setup.py saves you 30 person hours of effort in developing the same functionality from scratch.
              It has 83 lines of code, 4 functions and 4 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed setup.py and discovered the below as its top functions. This is intended to give you an instant insight into setup.py implemented functionality, and help decide if they suit your requirements.
            • Run the build
            • Print a status message
            Get all kandi verified functions for this library.

            setup.py Key Features

            No Key Features are available at this moment for setup.py.

            setup.py Examples and Code Snippets

            Customizing Training via Plugins-How to Write Your Own Plugin-setup.py
            C#dot img1Lines of Code : 5dot img1License : Non-SPDX (NOASSERTION)
            copy iconCopy
            entry_points={
                ML_AGENTS_STATS_WRITER: [
                    "example=mlagents_plugin_examples.example_stats_writer:get_example_stats_writer"
                ]
            }
              
            copy iconCopy
            config.add_library('library',
                               sources=[...],
                               config_fc={'noopt':(__file__,1)})  
            Python code-2to3 in setup.py
            Pythondot img3Lines of Code : 0dot img3License : Permissive (BSD-3-Clause)
            copy iconCopy
            build/py3k  

            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

            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

            How to build NumPy from source linked to Apple Accelerate framework?
            Asked 2022-Feb-25 at 17:57

            It is my understanding that NumPy dropped support for using the Accelerate BLAS and LAPACK at version 1.20.0. According to the release notes for NumPy 1.21.1, these bugs have been resolved and building NumPy from source using the Accelerate framework on MacOS >= 11.3 is now possible again: https://numpy.org/doc/stable/release/1.21.0-notes.html, but I cannot find any documentation on how to do so. This seems like it would be an interesting thing to try and do because the Accelerate framework is supposed to be highly-optimized for M-series processors. I imagine the process is something like this:

            1. Download numpy source code folder and navigate to this folder.
            2. Make a site.cfg file that looks something like:
            ...

            ANSWER

            Answered 2021-Nov-07 at 03:12

            I actually attempted this earlier today and these are the steps I used:

            • In the site.cfg file, put

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

            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

            Colab: (0) UNIMPLEMENTED: DNN library is not found
            Asked 2022-Feb-08 at 19:27

            I have pretrained model for object detection (Google Colab + TensorFlow) inside Google Colab and I run it two-three times per week for new images I have and everything was fine for the last year till this week. Now when I try to run model I have this message:

            ...

            ANSWER

            Answered 2022-Feb-07 at 09:19

            It happened the same to me last friday. I think it has something to do with Cuda instalation in Google Colab but I don't know exactly the reason

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

            QUESTION

            How to fix error when building conda package related to "Icon" file?
            Asked 2022-Feb-07 at 15:14

            I honestly can't figure out what is happening with this error. I thought it was something in my manifest file but apparently it's not.

            Note, this directory is in my Google Drive.

            Here is my MANIFEST.in file:

            ...

            ANSWER

            Answered 2022-Feb-07 at 15:14

            there are a few symptoms I would like to suggest looking into:

            1. There is a WARNING in your error log SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. You have MANIFEST.in, setup.py and setup.cfg probably conflicting between them. Because setup.py is the build script for setuptools. It tells setuptools about your package (such as the name and version) as well as which code files to include. Also, An existing generated MANIFEST will be regenerated without sdist comparing its modification time to the one of MANIFEST.in or setup.py, as explained here.

            Please refer to Building and Distributing Packages with Setuptools, also Configuring setup() using setup.cfg files and Quickstart for more information

            1. Maybe not so important, but another thing worth looking into is the fact that there are 2 different python distributions being used at different stages, as Python 3.10 is used at: Using pip 22.0.2 from $PREFIX/lib/python3.10/site-packages/pip (python 3.10) (it is also in your conda dependencies) and Python 3.8 is used at: File "/Users/jespinoz/anaconda3/lib/python3.8/site-packages/conda_build/tarcheck.py", line 53, in info_files raise Exception('info/files') which is where the error happens. So maybe another configuration conflict related to this.

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

            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

            ERROR: Could not build wheels for pycairo, which is required to install pyproject.toml-based projects
            Asked 2022-Jan-28 at 03:50

            Error while installing manimce, I have been trying to install manimce library on windows subsystem for linux and after running

            ...

            ANSWER

            Answered 2022-Jan-28 at 02:24
            apt-get install sox ffmpeg libcairo2 libcairo2-dev
            apt-get install texlive-full
            pip3 install manimlib  # or pip install manimlib
            

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

            QUESTION

            Could not find a version that satisfies the requirement psycopg2
            Asked 2021-Dec-05 at 21:00

            I'm working on CI for my Python + Django project. I have to use the python:3.9-alpine image. A weird error is popping in my CI pipelines:

            ...

            ANSWER

            Answered 2021-Dec-05 at 17:35

            What is the reason of my error?

            Did you read my previous answer to a similar question of yours? The last part warns about certain combinations of Alpine + Python and this seems to be happening right now.

            I tried to replace psycopg2 with psycopg2-binary but have the same error

            The problem here might be a python library that has dependencies on gcc, which is not shipped on alpine by default.

            Try replacing this:

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install setup.py

            You can download it from GitHub.
            You can use setup.py 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
            CLONE
          • HTTPS

            https://github.com/navdeep-G/setup.py.git

          • CLI

            gh repo clone navdeep-G/setup.py

          • sshUrl

            git@github.com:navdeep-G/setup.py.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