Questions tagged [sdist]

40 questions
0
votes
1 answer

python setup.py register can't decode byte 0xff in position 0

I'm packaging my python code and hope to upload to my pypi, my setup.py is like this: #!/usr/bin/env python from __future__ import print_function from setuptools import setup, find_packages import sys setup( name="JsonGet", …
W.Dennis
  • 1
  • 1
0
votes
2 answers

Add data folder recursively using data_files in Python

I want to add folders mydata1 and mydata2 in root package recursively when install my project. So I write this function in setup.py: def gen_data_files(*dirs): results=[] for datadir in dirs: results.extend([(p, [os.path.join(p,f)…
aviit
  • 1,957
  • 1
  • 27
  • 50
0
votes
1 answer

How to update sdist package of mysql-connector?

I am trying to update sdist package of mysql-connector (from 2.1.6 to 2.2.3, window7) using 'pip install -U mysql-connector', but have failed. See below: Anyone encountered the same issue and any possible solutions? Many thanks.
Kungreye
  • 108
  • 1
  • 8
0
votes
0 answers

How to run a tests suite that comes in a sdist?

I would like to be able to run the tests suite when "mypackage" has been installed via pip. I have created the mypackage-version.tar.gz file myself, using python setup.py sdist. mypackage-version.tar.gz does contain the tests/ directory (moreover,…
zezollo
  • 4,606
  • 5
  • 28
  • 59
0
votes
1 answer

Creating a Python Distribution: Trouble inlcluding HTML & JS etc files

I'm using the following script to create a python distribution, a theme/templates set for Pinax. The files are mostly HTML & JS, with the Python files there more for configuration purposes: import os import sys from fnmatch import fnmatchcase from…
Daryl
  • 1,469
  • 5
  • 18
  • 30
0
votes
1 answer

pip install package location issues

I have made a package and install it with pip (have created a sdist package). However when I execute the script that was at the same time install too /usr/local/bin/ it errors because the modules it is trying to import are installed too…
iNoob
  • 1,375
  • 3
  • 19
  • 47
0
votes
1 answer

Using python sdist to create a package that includes generated files in the build directory

I have generated python source files (from protocol buffer definitions) in build/generated-sources that are referenced by my setup.py script: package_dir={'': 'build/generated-sources/main'}, But sdist.py prunes all files from the build folder. I…
rsb
  • 1,020
  • 1
  • 10
  • 25
0
votes
1 answer

None of my .py scripts appear when installing a homemade package

I am trying to create a distributable package for my python project. Python 2.7 I have a setup.py file that includes the following: from setuptools import setup, find_packages import sys, os version = '1.0' setup(name='my_lovely_package', …
dbJones
  • 762
  • 1
  • 10
  • 31
0
votes
1 answer

Installed new Pypi module looks OK but not recognised by python?

I'm having trouble with a Python package on PyPi. I can't see any answered questions for problems like this (though I've found some unanswered ones), so here goes: My package BrickPython looks like this: BrickPython + BrickPython +…
CharlesW
  • 955
  • 8
  • 18
0
votes
0 answers

Python module not installing correctly (linux)

I've been learning python over the past couple of days from Head First Python. I've reached a point where I have to build a distribution package of a module I've made, called nester, and install it on my system. After installing the module I have…
Erresen
  • 1,923
  • 1
  • 22
  • 41
1 2
3