setup.py

Is there a way to include shell scripts in a Python package with pyproject?

Is there a way to include shell scripts in a Python package with pyproject? Question: Previously with setup.py you could just add setuptools.setup( … scripts=[ "scripts/myscript.sh" ] ) and the shell script was just copied to the path of the environment. But with the new pyproject scpecification, this seems to not be possible any more. …

Total answers: 1

Is it possible to pass arguments to setup.py while creating own .whl file?

Is it possible to pass arguments to setup.py while creating own .whl file? Question: I often update my own libs using in my projects and i want to automate it so i wrote a script which calls command which builds a .whl lib by os.system and setup.py module gets build params by sys.argv but it …

Total answers: 1

setup.py claims that my module is installed but it isn't

setup.py claims that my module is installed but it isn't Question: I have the following simple directory structure root |- setup.py |- junie.py |- lucy.py The contents of the files are as follows: # setup.py from distutils.core import setup setup( name=’mydogs’, version=’1.0′, py_modules=[‘junie’, ‘lucy’] ) # junie.py def junie(): print(‘Junie says hi’) # lucy.py def …

Total answers: 1

Installing my project from testpypi gives me an error

Installing my project from testpypi gives me an error Question: I am learning how to package python projects and publish them and I ran into a problem I have been trying to solve ,but failed. I have this small project and I am trying to upload it to Testpypi I managed to upload it there …

Total answers: 1

Python packaging with setup.py does ignore manifest specifications

Python packaging with setup.py does ignore manifest specifications Question: I’m currently trying to pack a module that uses precompiled *.pyd files from a swig routine. The process for the user is supposed to be: install base library (C, C++); directories linked in the environment variables; here are also the *.pyd files. get python package; open …

Total answers: 1

How to replace setup.py with a pyproject.toml for a native C build dependency?

How to replace setup.py with a pyproject.toml for a native C build dependency? Question: I came across this little project for creating a C-compiled version of the Black-Scholes function to be used in python. Although the example code seem to have been published in July this year, it seem that the use setup.py type of …

Total answers: 1

Trying to run imagen-pytorch

Trying to run imagen-pytorch Question: I’m trying to run this "imagen-pytorch" repo https://github.com/lucidrains/imagen-pytorch/blob/main/README.md I’ve cloned it and tried running the setup.py file on pycharm (CE) however I get the following error: $ 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 …

Total answers: 1

cl : Command line warning D9002 : ignoring unknown option "-O3"

cl : Command line warning D9002 : ignoring unknown option "-O3" Question: I want to build a project that uses various flags by type -O3 -Wall -std=c++11 using cython, but I get an error: cl : Command line warning D9002 : ignoring unknown option Maybe it is possible to replace compilation with VS with Cmake, …

Total answers: 1

Migration from setup.py to pyproject.toml: how to specify package name?

Migration from setup.py to pyproject.toml: how to specify package name? Question: I’m currently trying to move our internal projects away from setup.py to pyproject.toml (PEP-518). I’d like to not use build backend specific configuration if possible, even though I do specify the backend in the [build-system] section by require‘ing it. The pyproject.toml files are more …

Total answers: 2