Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

setup.py

What is setup.py?

August 21, 2022 by Magenaut

Can anyone please explain what setup.py is and how it can be configured or used?

Categories Python, Q&A Tags pypi, python, python-3.x, python-packaging, setup.py Leave a comment

python setup.py uninstall

August 19, 2022 by Magenaut

I have installed a python package with python setup.py install.

Categories Python, Q&A Tags pypi, python, setup.py Leave a comment

Python 3: ImportError “No Module named Setuptools”

August 19, 2022 by Magenaut

I’m having troubles with installing packages in Python 3.

Categories Python, Q&A Tags module, package, python, python-3.3, setup.py Leave a comment

Why is python setup.py saying invalid command ‘bdist_wheel’ on Travis CI?

August 19, 2022 by Magenaut

My Python package has a setup.py which builds fine locally on Ubuntu Trusty and on a fresh Vagrant Ubuntu Trusty VM when I provision it like this:

Categories Python, Q&A Tags pypi, python, setup.py, travis-ci Leave a comment

Src layout to dispense .src prefix in imports? Activate venv in PyCharm terminal for development installs

August 16, 2022 by Magenaut

I want to understand what is considered the correct minimalist way to use setuptools with a “src/ layout” in a way that dispenses using src. prefix in imports?

Categories Python, Q&A Tags pip, pycharm, python, setup.py, setuptools Leave a comment

How may I override the compiler (GCC) flags that setup.py uses by default?

August 15, 2022 by Magenaut

I understand that setup.py uses the same CFLAGS that were used to build Python. I have a single C extension of ours that is segfaulting. I need to build it without -O2 because -O2 is optimizing out some values and code so that the core files are not sufficient to pin down the problem.

Categories Python, Q&A Tags distutils, gcc, python, setup.py, setuptools Leave a comment

Difference between ‘python setup.py install’ and ‘pip install’

August 15, 2022 by Magenaut

I have an external package I want to install into my python virtualenv from a tar file.
What is the best way to install the package?

Categories Python, Q&A Tags pip, python, setup.py, virtualenv Leave a comment

How to force a python wheel to be platform specific when building it?

August 14, 2022 by Magenaut

I am working on a python2 package in which the setup.py contains some custom install commands. These commands actually build some Rust code and output some .dylib files that are moved into the python package.

Categories Python, Q&A Tags python, python-wheel, setup.py, setuptools Leave a comment
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress