Questions tagged [sdist]

40 questions
2
votes
0 answers

Using sdist to package root source files that are in a subdirectory

I have the following file layout: setup.py build/ generated-sources/ foo.py With the following setup script: setup( package_dir={'': 'build/generated-sources'}, packages=['']) From the docs…
rsb
  • 1,020
  • 1
  • 10
  • 25
1
vote
0 answers

Setuptools -- Replacing Manifest.in with pyproject.toml

Does setuptools support replacing the Manifest.in file, which specifies files that should only be included in the sdist distribution with a declaration in pyproject.toml?
Spitfire19
  • 260
  • 1
  • 2
  • 11
1
vote
1 answer

Why does `python setup.py sdist` copy the entire directory into the dist file?

I am perplexed why this setup.py file # -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.rst', 'r', encoding='utf-8') as file: readme = file.read() setup( name = 'PDIpy', package_dir =…
1
vote
1 answer

How to create a setuptools sdist .tar.gz package from a Conda project?

I have a PyTorch training project where dependencies are managed using conda. I need to package my project as a setuptools software distribution (sdist) in a .tar.gz file so that I can run it as a custom job in Google Cloud Platform's Vertex.AI…
urig
  • 16,016
  • 26
  • 115
  • 184
1
vote
1 answer

The data folder doesn't included when I upload my package to pypi?

I created a package and I wanted to upload it to pypi. The structure of files is like this: AAA ├── AAA │   ├── AAA.py │   ├── BBB.py │   ├── CCC.py │   ├── __init__.py │   └── DDD.py │ ├── data │   ├── table2.json │   └── table2.json │ ├──…
Asdoost
  • 316
  • 1
  • 2
  • 15
1
vote
0 answers

Python: update file output of sdist in setup.py

Is there a way to have sdist generate a .tar.gz with the python tag? Basically I am building two versions of my library (with python 3.5 and python 3.7). I can specify the python tag with bdist_wheel, but I am not sure how to specify it for…
user1179317
  • 2,693
  • 3
  • 34
  • 62
1
vote
2 answers

Setuptools: use build variants with different required packages

I want to make a source distribution (sdist), which needs to be different for the development and the target platform in terms of required packages. More concretely, when I package for the Raspberry Pi (target platform), I don't require…
Janos
  • 796
  • 1
  • 9
  • 26
1
vote
1 answer

Why would one use an egg over an sdist?

About the only reason I can think of to distribute a python package as an egg is so that you can not include the .py files with your package (and only include .pyc files, which is a dubious way to protect your code anyway). Aside from that, I can't…
Jason Baker
  • 192,085
  • 135
  • 376
  • 510
1
vote
1 answer

Create a python package & install it as source distribution and not a .egg?

I have a python package which has several data files in a data folder which have to be read when the package is used; these are not python scripts. However when I install my package to test it with python setup.py install --user only an…
Aage Torleif
  • 1,907
  • 1
  • 20
  • 37
0
votes
0 answers

'python3 setup.py sdist' doesent work properly for creating packege

when I enter '''python3 setup.py sdist''' , nothing will happen in the cmd and my folder, and my current path directory will be shown again on the below!
0
votes
1 answer

Sdist showing error while uploading package to pypi

I am building a Python Module, and am following this tutorial. However when I run python setup.py sdist, I get: running sdist running check warning: sdist: manifest template 'MANIFEST.in' does not exist (using default file list) error: package…
Squiggles
  • 21
  • 4
0
votes
1 answer

python django webapp packaging sdist

When I run python setup.py sdist in my project directory and check the contents with tar --list -f .\dist\my_project_name-1.0.tar.gz I expected to see one important python file (manage.py) and a couple of directories such as templates which contains…
IDK
  • 359
  • 1
  • 16
0
votes
1 answer

Why is pip not utilizing metadata of sdist package?

When I use the default index URL for pip, it properly understands that certain version of the package is not compatible with the environment: $ pip -v -i https://pypi.python.org/simple install…
Konstantin Shemyak
  • 2,369
  • 5
  • 21
  • 41
0
votes
1 answer

cabal new-sdist includes test files as well

I want to create an sdist package for my Haskell project. For simplicity let's assume the following project structure: / root | src | MyLib.hs | test | MyLibTest.hs | Changelog.md | MyProject.cabal | LICENSE There are two targets…
LA.27
  • 1,888
  • 19
  • 35
0
votes
1 answer

How to specify the `--formats` sdist option inside setup.py?

I try to create a zipped source python package on a linux distribution without specifying the --formats option to sdist on the command line (using an existing Jenkins pipeline which do not support this option). In the documentation here, it…
matovitch
  • 1,264
  • 11
  • 26