distutils Questions

2

Solved

I want people that know of the old name to be directed to the new name. For the pypi website, it's easy to upload a package with a README linking to the new package. I'm not sure what's the best ...
Lavine asked 22/4, 2020 at 11:3

4

I am migrating the configurations from setup.py to setup.cfg but I have a problem with cmdclass keyword. I looked into setuptools docs and it seems like this keyword is not documented or supported....
Takara asked 17/1, 2019 at 16:44

7

Solved

I'm trying to get it so that 1.7.0 comes after 1.7.0.rc0 but before 1.8.0, as it should if you were sorting versions. I thought the whole point of LooseVersion was that it handled the sorting and c...
Labrie asked 4/9, 2012 at 0:56

5

Solved

Is there a way to explicitly force the compiler for building Cython extensions when running python setup.py install? Where setup.py is of the form: import os.path import numpy as np from setuptools...
Chiropody asked 25/10, 2015 at 15:41

1

My package is written almost entirely in python. However, some functionality is based on executables that are run within python using subprocess. If I set up the package locally, I need to first co...
Valladares asked 9/10, 2020 at 19:48

3

When installing my python package, I want to be able to tell the user about various optional dependencies. Ideally I would also like to print out a message about these optional requirements and wha...
Pruett asked 4/6, 2011 at 16:29

1

I'm working on ubuntu 16.0.4 LTS and While creating a virtual environment in python 3.8 I'm getting No module named 'distutils.util' I'm using the repository: sudo add-apt-repository ppa:deadsnakes...
Demodulate asked 28/1, 2022 at 16:9

1

My code structure is as follows: myMLCode │ ├── main.py ├── ML_lib | ├── __init__.py │ └── core.py | └── set1 | ├── __init__.py │ └── mymod1.py │ └── mymod2.py | └── set2 | ├── __init__.py │ └── ...
Therapeutics asked 12/5, 2021 at 10:42

6

Solved

I was trying to install Python packages a system I recently gained access to. I was trying to take advantage of Python's relatively new per user site-packages directory, and the new option --user. ...
Angelicangelica asked 20/12, 2010 at 23:54

1

Solved

Apparently, Python 3.10 / 3.12 is going to deprecate / remove distutils (cpython/issues/92584). Unfortunately, I have not been able to find a replacement for the one and only function I am using fr...
Loutish asked 29/3, 2022 at 15:31

3

Solved

I'm working on a Python Django package whose front-end components employ a bit of CoffeeScript. Right now, I have a rather brain-dead external script that takes care of the CoffeeScript compilatio...
Soapstone asked 15/5, 2012 at 11:17

6

Solved

I want to wrap a test project containing C++ and OpenMP code with Cython, and build it with distutils via a setup.py file. The content of my file looks like this: from distutils.core import setup ...
Laughable asked 24/5, 2013 at 14:23

5

Solved

This setup.py: from distutils.core import setup from distutils.extension import Extension from Cython.Build import cythonize extensions = ( Extension('myext', ['myext/__init__.py', 'myext/algor...
Agro asked 10/5, 2015 at 22:38

2

Solved

I have a python project that uses google protobufs as a message format for communicating over the network. Generating python files from the .proto files is straight-forward using the protoc program...
Desalinate asked 10/5, 2014 at 19:35

7

Solved

If I have built a python package employing distutils.core, e.g. via setup( ext_package="foo", author="me", version="1.0", description="foo package", packages=["foo",], ) where does all the ...
Blatman asked 19/12, 2013 at 13:32

5

Solved

When I run python setup.py sdist it creates an sdist in my ./dist directory. This includes a "PROJECT-egg.info" file in the zip inside my "dist" folder, which I don't use, but it doesn't hurt m...
Benbow asked 23/9, 2010 at 15:26

1

Solved

Core metadata specification documents the metadata field Requires-External which seems to be for specifying system (non-python) dependencies. How do you actually specify this field though? This is ...
Batter asked 2/11, 2021 at 14:58

5

Solved

Quick one today: I'm learning the in's and out's of Pythons distutils library, and I would like to include a python extension module (.pyd) with my package. I know of course that the recommended wa...
Pincus asked 15/3, 2010 at 2:14

9

Solved

With distutils, setuptools, etc. a package version is specified in setup.py: # file: setup.py ... setup( name='foobar', version='1.0.0', # other attributes ) I would like to be able to access th...
Phenocryst asked 11/7, 2013 at 1:4

2

Solved

I want to make my python package "pip installable". The problem is that the package has shell script that must be sourced in the user's init shell script (e.g. .bashrc). But after the installation...
Misshapen asked 6/4, 2013 at 16:12

3

Solved

Inside the setup.py script I need to create some temporary files for the installation. The natural place to put them would be the "build/" directory. Is there a way to retrieve its path that works...
Proximate asked 15/10, 2012 at 13:13

3

I am distributing a package that has this structure: mymodule: mymodule/__init__.py mymodule/code.py scripts/script1.py scripts/script2.py The mymodule subdir of mymodule contains code, and ...
Adjutant asked 19/10, 2012 at 13:40

3

I have a Python C++ extension that requires the following compilation flags when compiled using Clang on OS X: CPPFLAGS='-std=c++11 -stdlib=libc++ -mmacosx-version-min=10.8' LDFLAGS='-lc++' Detect...
Twobit asked 21/2, 2015 at 2:32

3

I have a Python extension which uses CPU-specific features, if available. This is done through a run-time check. If the hardware supports the POPCNT instruction then it selects one implementation o...
Fineable asked 20/3, 2013 at 15:20

3

Solved

I understand that setup.py uses the same CFLAGS that were used to build Python. I have a single C extension of ours that is segfaulting. I need to build it without -O2 because -O2 is optimizing out...
Demmer asked 3/8, 2011 at 14:28

© 2022 - 2025 — McMap. All rights reserved.