Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Call pytest from a distutils script.

Project Description

This Python module adds test to the commands in the distutils package. If your imports distutils_pytest, the user may run:

python test

This will call pytest to run your package’s test suite.

System requirements

  • Python 2.6, 2.7, or 3.1 and newer.
  • pytest

To be honest, the package might also work with older Python versions. But I didn’t try it.


This package uses the distutils Python standard library package and follows its conventions of packaging source distributions. See the documentation on Installing Python Modules for details or to customize the install process.

  1. Download the sources, unpack, and change into the source directory.

  2. Build:

    $ python build
  3. Install:

    $ python install

The last step might require admin privileges in order to write into the site-packages directory of your Python installation.

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(3.6 kB) Copy SHA256 Hash SHA256
Source None Apr 1, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting