setup.py

Setuptools is creating is creating egg for UNKNOWN instead of setuptools-rust

Setuptools is creating is creating egg for UNKNOWN instead of setuptools-rust Question: I’m trying to build setuptools rust (v1.3) using python 3.10.4, openssl 3.0 and setuptools v58.2 These are the commands and outputs: (venv3.10) [/dbc/blr-dbc2112/abandaru/projects]$ python cayman_pyo3_setuptools-rust/pyo3_setuptools-rust/src/setup.py build running build (venv3.10) [/dbc/blr-dbc2112/abandaru/projects]$ python cayman_pyo3_setuptools-rust/pyo3_setuptools-rust/src/setup.py install running install running bdist_egg running egg_info writing UNKNOWN.egg-info/PKG-INFO writing dependency_links …

Total answers: 1

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

`pip install` Gives Error on Some Packages

`pip install` Gives Error on Some Packages Question: Some packages give errors when I try to install them using pip install. This is the error when I try to install chatterbot, but some other packages give this error as well: pip install chatterbot Collecting chatterbot Using cached ChatterBot-1.0.5-py2.py3-none-any.whl (67 kB) Collecting pint>=0.8.1 Downloading Pint-0.19.2.tar.gz (292 …

Total answers: 3