Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
31 views

I have a containerized python app. It's an app that runs tests This is the setup.py, it essentially creates a "console script" called "tsdm" that runs my app's entry point. # setup....
Almowafy's user avatar
19 votes
2 answers
7k views

I'm trying to distribute a shell script along with a Python package. Ideally, the shell script is installed when I run pip install my_package. I read from this SO that, my expected behavior is exactly ...
Luting Wang's user avatar
2 votes
0 answers
40 views

I am developing a project using Setuptools, and in a couple of places (e.g. scripts, the Sphinx docs) I want to be able to use pieces of project metadata, such as the version, name, authors, etc. I ...
shadowtalker's user avatar
  • 14.1k
3 votes
1 answer
245 views

I have a python project with the below structure my-project venv tests setup.py abc __init__.py my_pckg __init__.py foo.py static data_0.txt ...
Amin Ba's user avatar
  • 2,565
0 votes
1 answer
3k views

I am trying to install the Python module Scrappy but the requirements.txt file is not found. I'm using Python 3.10.4 and pip 22.2.2. I tried running pip install -r requirements.txt which produced the ...
exr897's user avatar
  • 5
0 votes
0 answers
354 views

In our project (Locust) we use setuptools_scm for versioning, so it is needed for all installations from local directory. We used to have this specified in setup.py: setup( setup_requires=["...
Cyberwiz's user avatar
  • 11.7k
13 votes
7 answers
182k views

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 ...
oas333's user avatar
  • 161
1 vote
2 answers
1k views

I am trying to create an executable for a script I have already written. It will be used by a coworker who doesn't have python on their machine, so I want to create an executable to make their life ...
finman69's user avatar
  • 311
6 votes
2 answers
3k views

I have the following situation that pip install -e . does not build the develop version unless I delete the pyproject.toml which does not contain packaging information, but black configuration. Does ...
PetKie's user avatar
  • 88
2 votes
0 answers
204 views

I'm using py2app to convert my python program to an .dmg on MacOS. The packages that I used are (Tkinter, Folium, and Pandas) and I have a few dependencies for the application to run. (.json, .cvs and ...
Anna M's user avatar
  • 87
3 votes
2 answers
1k views

When using setup.py in a Python project, we can simply run $ python3 setup.py --version And this will give us the version field that is set in the setup.py file. This saves us using sed or something ...
YoavKlein's user avatar
  • 2,885
0 votes
3 answers
2k views

This is my project structure currently; repository/ |---- setup.py |---- package_name/ |---- __init__.py |---- module_a.py |---- subdir/ |---- __init__.py |---...
Aditya Srivastava's user avatar
2 votes
2 answers
6k views

After git pulling upstream main from a repo I'm working on with about 10 other developers, I've been trying to pip install -Ur requirements.txt but it keeps coming up with this error and I've tried ...
Oke Adenike's user avatar
2 votes
0 answers
321 views

Behold, my tree: src/ ├── bin │ ├── cli.py ├── mypackage │ ├── __init__.py │ ├── api.py │ ├── models │ └── utils.py Now, observe, my setup.cfg: [options] zip_safe = False packages = find: ...
bluppfisk's user avatar
  • 2,722
0 votes
1 answer
3k views

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 ...
Ne1zvestnyj's user avatar
  • 1,407
0 votes
1 answer
2k views

Newbie coder here. So im trying to pipenv install django but i keep getting this error : $ pipenv install django Creating a virtualenv for this project... Pipfile: C:\Users\wesleyromero308\Desktop\...
Wesley Romero-Arias's user avatar
0 votes
0 answers
286 views

I'm trying to create a python package for the first time, using setuptools. Let's imagine my package is named qwerty. Here's my project structure: qwerty (folder) ++ src (folder) --++ __init__.py --++ ...
4kc0wj34bf's user avatar
1 vote
1 answer
143 views

If sharing a Python library via PyPI, so that someone else can download it with pip and import it in their code, the minimal layout that I know of is this: + foo + src + bar __init__.py ...
lofidevops's user avatar
  • 17.4k
1 vote
0 answers
271 views

I am developing a package Pkg-1 in Python and my workflow is as follows: I use pipenv to install a dependency A of Pkg-1 with pipenv install A and then I install Pkg-1 with pipenv install -e . Now I ...
Giorgos's user avatar
  • 21
3 votes
1 answer
618 views

I am interested in running a script that is part of a rather large Python package. The package structure looks something like this: MyApp | --setup.py | --MyApp | --foo | --scripts/some-tiny-...
Tom Purl's user avatar
  • 549
1 vote
0 answers
207 views

Currently my setup.py looks like this: setup( name="package", entry_points={ 'console_scripts': [ 'package = src.utils:main' ], ...
Tom J Muthirenthi's user avatar
1 vote
1 answer
2k views

So after a couple weeks of coding in my free time I decided to publish my first package to PYPI. I followed this good guide I found on Medium on how to publish to PYPI and to create setup.py I ...
NotAName's user avatar
  • 4,474
1 vote
0 answers
76 views

I have a setup.py as below configuration setup( install_requires = ['django == 2.0'] ) I would like to modify the setup.py based on docker usage. If user uses docker then the configuration must be ...
devel's user avatar
  • 11
2 votes
0 answers
641 views

I am installing a python module that require compilation inside a conda environment. The base installation fails because pip is not looking for the Python.h file in the proper location. To fix this, ...
loki1725's user avatar
0 votes
1 answer
520 views

In my python project, there is another python project s2p downloaded as a git submodule. How can I install my project and only the s2p folder in s2p project without running s2p/setup.py in s2p project....
Der Fänger im Roggen's user avatar
1 vote
1 answer
531 views

In Post-install script with Python setuptools, this answer shows how to make a post-install command. I want to make a post-install command that checks for a version matchup between sub-packages from a ...
Intrastellar Explorer's user avatar
0 votes
1 answer
1k views

I have a python project that relies on precompiled .so (Unix) and .dll (Windows) files to work that I am trying to convert into an installable package. But, I cannot figure out how to get the .so and ....
GeneralPancake's user avatar
1 vote
1 answer
430 views

recreate the image deployment describe here: https://github.com/dagster-io/dagster/tree/master/python_modules/automation/automation/docker/images How do I install the dagster-image cli? dagster-image ...
Manrique Vargas's user avatar
0 votes
1 answer
1k views

I have written a python package I'm trying to install. With a structure: packagename | |--- setup.py |--- module_name | |--- library.c The library.c file has been ...
Allentro's user avatar
  • 416
0 votes
0 answers
14 views

I am packaging my app where I need to load a config.yaml file which resides in my project. After doing pip install I am seeing the file is present in package but it's not picking up the file. My ...
Pranjal Doshi's user avatar
3 votes
4 answers
35k views

I try to install mariadb package on my ubuntu 20.04 and I get this message : Collecting mariadb Using cached mariadb-1.1.3.tar.gz (80 kB) Preparing metadata (setup.py) ... error error: subprocess-...
nhey4Aterno's user avatar
-1 votes
1 answer
302 views

I build netifaces module with "python setup.py buiild". But during two build process, the output path is different. First build, the output path is lib.linux-x86_64-3.9 Second build, the ...
ShengWang's user avatar
2 votes
0 answers
157 views

It is best practice to specify project dependencies for a package in setup.py install_requires according to https://packaging.python.org/en/latest/discussions/install-requires-vs-requirements/ and ...
Patrick Christie's user avatar
0 votes
1 answer
2k views

I am packaging a Python package with around 20 Python modules and one shared library[1]. I have create the following setup.py file: from setuptools import setup, find_packages setup( name = "...
user422005's user avatar
  • 2,091
1 vote
0 answers
103 views

I am not familiar with setuptools so I hope this is a simple mistake (but couldn't find anything related). I have this in my setup.py entry_points={ 'console_scripts':[ 'filea=autostart....
user3402701's user avatar
46 votes
5 answers
25k views

We have multiple python projects, and are considering converting them to use pyproject.toml instead of setup.py. Is there a simple way to automate this?
user17304108's user avatar
4 votes
1 answer
11k views

I am facing an error like No such file or directory.... Could anyone help me with this out? I'd really appreciate it! This is the directory: And this is the setup.py code: from setuptools import ...
user avatar
1 vote
1 answer
456 views

I am attempting to install the Google Assistant to a raspberry pi Zero W. During the last step it to failed to complete install google-assistant-sdk[samples]. I am running python 3.9.2 on the pi Zero. ...
manderson96's user avatar
0 votes
0 answers
366 views

I want to build a package using setup tools. To import package I am using find_packages from setuptools. I have lots of directory and I want to include only few of them. How can I achieve exclude ...
Pranjal Doshi's user avatar
0 votes
0 answers
955 views

I have following package tree , I want to install the particular package from src and base (always install with selected package from src). I am trying to create custom command so that using pip I can ...
Piyush S. Wanare's user avatar
3 votes
1 answer
6k views

I have below package tree for my project └── src | ├── mypkg1 | │ ├── module1.py | │ ├── module2.py | │ └── __init__.py | | |-- setup.py | | |__ requirements.py | └── ...
Piyush S. Wanare's user avatar
0 votes
1 answer
5k views

How could i solve this error i tried many ways to instal cmake installed succesfully but the dlib getting error everytime to install c++ and visiual studio also installed C:\Users\Admin>pip ...
Mahdiath Hasan's user avatar
0 votes
1 answer
1k views

I'm working with the following directory structure: package1/ package_content1 package2/ package_content2 setup.py Up until now I usually installed with pip install -e . commenting the part ...
Aurelie Navir's user avatar
1 vote
1 answer
1k views

Problem python setup.py install installs a package I'm developing all fine, but when I try importing the package I get a "ModuleNotFoundError" saying that a local package could not be found....
Eric B's user avatar
  • 373
0 votes
0 answers
236 views

Working on the setup.py and having hard dependency on downloading a zip file and extract from it the executable binary. The goal: downloading XXX.zip, and being able to run the xxx.exe as part of my ...
Or Bendel's user avatar
1 vote
1 answer
468 views

I'm writing a python setup.py script for an own package which needs a version constant from the package. However, the package needs to have some dependencies installed. Therefore I specified ...
Wör Du Schnaffzig's user avatar
1 vote
1 answer
913 views

Building my workspace with colcon, some OSM files which are found in a directory "OSM" in a sub_package in the workspace are not found in built space. So when I go to the install space, the ...
Hadi Elnemr's user avatar
1 vote
1 answer
640 views

When I run the pip show command on my package Classeviva.py I get the following. D:\Python\Python\Classeviva>pip show classeviva.py Name: Classeviva.py Version: 0.1.1.post1 Summary: Classeviva ...
FLAK-ZOSO's user avatar
  • 4,165
1 vote
1 answer
149 views

My library is being installed from a corporate artifactory repo using the old-school setup.py . But the requirements-freeze.txt is not being found $pip3 install --force-reinstall hercl --index https://...
WestCoastProjects's user avatar
13 votes
2 answers
13k views

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 ...
arne's user avatar
  • 4,714

1
3 4
5
6 7
35