Skip to main content

Questions tagged [setup.py]

setup.py is a Python script required by libraries packaged and distributed with Distutils.

1 vote
0 answers
19 views

How to ensure that at least one optional dependency is specified during installation of a python wheel?

I have a unique use case where my python package specifies 3 optional dependencies to setuptools.setup using the extras_require argument. While each of those individual dependencies is kind of ...
Kirthi's user avatar
  • 11
0 votes
1 answer
32 views

How to import a private repo into a project using pipenv

I have a common utils repo with a setup.py. I am trying to install this in a new repo using pipenv and am struggling to get it running. I don't often play with setup.py so am definitely doing ...
WhatAmIDoing's user avatar
0 votes
0 answers
36 views

Setup.py doesn't see scripts

I have a code in my setup.py file: from setuptools import setup, find_packages setup( name='PBI_telegrambot', version='0.0.1', author='junscience', description='Embedding app for ...
Антон Попенко's user avatar
0 votes
0 answers
29 views

Use CMake to build Cuda based python extension in setup.py

I'm using 3D Gaussian Splatting, which consists of a Cuda/C++ based python extension. I want to use CMake to compile it in setup.py. My basic idea is to generate .so file with CMake, and use this ...
Peppasaur's user avatar
0 votes
1 answer
25 views

Automatically extend all imports within python project by prefix

I am trying to convert my python 3.11.3 project into a package via a setup.py. The general structure is something like this - project_name/ - setup.py - project_name/ - sub_module/ - ...
foobar_98's user avatar
  • 117
0 votes
0 answers
19 views

Module with absolute Path constants within Package packaged with setuptools

I have a medium size Python package and I use setuptools to build a wheel. The package is meant to be a convenience library for a Fortran program. I now would like to define a constant which gives the ...
Hendrik's user avatar
-1 votes
0 answers
75 views

Steps to install python packages without PIP command and when there is no setup.py exists

In Organizational network we had block the installation from cmd prompt using pip for python package installations. I have downloaded the package files from pypi.org and installed using python setup....
Goutham's user avatar
4 votes
0 answers
46 views

How to include C++ header and source files in a Python package for PyPI distribution?

I'm trying to include C++ header and source files in my Python package because I use them in the Python files of my package (via cppyy). It works fine on my local PC, but when I build the package for ...
oriyalp's user avatar
  • 71
0 votes
1 answer
40 views

`pip install .` successfully installs - but calling raises: ModuleNotFoundError: No module named - importing it works fine

Quick description: CLI made with click that interacts with spotify using dbus-python. Go to the github page if you need more info I suppose - or try it yourself if you are so inclined. I'm running on ...
masakk1's user avatar
0 votes
0 answers
24 views

Migrating from setup.py to pyproject.toml, outdated egg.info

When using setup.py, pip install -e . creates a my_app.egg-info directory containing a PKG-INFO file. After moving to pyproject.toml, the same install procedure doesn't update or remove that ...
Jérôme's user avatar
  • 14.3k
0 votes
1 answer
45 views

How to correctly use python __init__.py in packages

I have such structure lib. PLUS The setup.py in the root I want to create a package. How should I correctly set up the init.py in this case. Because after python setup.py sdist and python setup.py ...
Nikita Belov's user avatar
-1 votes
1 answer
34 views

Build distribution package for different platform architecture

We have Jenkins pipeline that runs on X86 architecture and invokes following command: python setup.py sdist bdist_wheel I would like to build a package for ARM-based architecture. Is it possible by ...
datahack's user avatar
  • 639
-1 votes
1 answer
39 views

Make version.py visible from setup.py when using pyproject.toml

I have a project with this file structure: project/ |- ... |- include/ \- version.hpp |- conanfile.py |- pyproject.toml |- setup.py \- version.py version.hpp is the only point where I keep the ...
rturrado's user avatar
  • 7,964
0 votes
0 answers
41 views

Python using use_scm_version keyword in setuptools setup()

I am using setuptools.setup() function inside my setup.py: setup(use_scm_version={"version_scheme": get_main_version, "local_scheme": get_local_version}) The use_scm_version ...
wO_o's user avatar
  • 319
-1 votes
2 answers
100 views

How to copy requirements.txt and setup.py files into docker image from parent folder [duplicate]

Here is the directory structure of my project:Directory tree From the backend folder, I want to create a Docker image that loads the setup.py and requirements.txt files which are in the parent folder. ...
ahmedaao's user avatar

15 30 50 per page
1
2 3 4 5
118