bukzor / python-coverage-enable-subprocess

10 stars 1 forks source link

Support develop and other things #2

Open ionelmc opened 8 years ago

ionelmc commented 8 years ago

Hey

Almost forgot about this. Your setup.py is much more simpler than what's in pytest-cov but it don't handle develop installs or "easy_install".

This is why I add all those custom commands in pytest-cov's setup.py.

Eg:

.ve/bin/pip install -                                                                                                                                   e .
Obtaining file:///home/ionel/sandbox/coverage_enable_subprocess
Collecting coverage (from coverage-enable-subprocess==0)
/home/ionel/sandbox/coverage_enable_subprocess/.ve/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
/home/ionel/sandbox/coverage_enable_subprocess/.ve/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading coverage-4.0.3.tar.gz (354kB)
    100% |████████████████████████████████| 356kB 1.1MB/s
Building wheels for collected packages: coverage
  Running setup.py bdist_wheel for coverage
  Stored in directory: /home/ionel/.cache/pip/wheels/ad/e9/43/c707c8a790537e194952b96ebaa8156bdee0e6ec6115c6f140
Successfully built coverage
Installing collected packages: coverage, coverage-enable-subprocess
  Running setup.py develop for coverage-enable-subprocess
Successfully installed coverage-4.0.3 coverage-enable-subprocess
ionel:newbox ~/sandbox/coverage_enable_subprocess master?> ll .ve/lib/python2.7/site-packages                                                                                                     4.12s => 0 16:48
total 56K
drwxrwxr-x  3 ionel ionel 4.0K Dec  2 16:48 coverage
drwxrwxr-x  2 ionel ionel 4.0K Dec  2 16:48 coverage-4.0.3.dist-info
-rw-rw-r--  1 ionel ionel   48 Dec  2 16:48 coverage-enable-subprocess.egg-link
-rw-rw-r--  1 ionel ionel  232 Dec  2 16:48 easy-install.pth
-rw-rw-r--  1 ionel ionel  126 Dec  2 16:48 easy_install.py
-rw-rw-r--  1 ionel ionel  315 Dec  2 16:48 easy_install.pyc
drwxrwxr-x  2 ionel ionel 4.0K Dec  2 16:48 _markerlib
drwxrwxr-x 10 ionel ionel 4.0K Dec  2 16:48 pip
drwxrwxr-x  2 ionel ionel 4.0K Dec  2 16:48 pip-7.1.2.dist-info
drwxrwxr-x  3 ionel ionel 4.0K Dec  2 16:48 pkg_resources
drwxrwxr-x  3 ionel ionel 4.0K Dec  2 16:48 setuptools
drwxrwxr-x  2 ionel ionel 4.0K Dec  2 16:48 setuptools-18.2.dist-info
drwxrwxr-x  5 ionel ionel 4.0K Dec  2 16:48 wheel
drwxrwxr-x  2 ionel ionel 4.0K Dec  2 16:48 wheel-0.24.0.dist-info

and with easy_install (yeah, no one should use that but some tools might):

.ve/bin/easy_install .                                                                                                                 0.01s => 0 16:48
Processing .
Writing /home/ionel/sandbox/coverage_enable_subprocess/setup.cfg
Running setup.py -q bdist_egg --dist-dir /home/ionel/sandbox/coverage_enable_subprocess/egg-dist-tmp-eQL37j
warning: install_lib: 'build/lib.linux-x86_64-2.7' does not exist -- no Python modules to install

creating /home/ionel/sandbox/coverage_enable_subprocess/.ve/lib/python2.7/site-packages/coverage_enable_subprocess-0-py2.7.egg
Extracting coverage_enable_subprocess-0-py2.7.egg to /home/ionel/sandbox/coverage_enable_subprocess/.ve/lib/python2.7/site-packages
Removing coverage-enable-subprocess 0 from easy-install.pth file
Adding coverage-enable-subprocess 0 to easy-install.pth file

Installed /home/ionel/sandbox/coverage_enable_subprocess/.ve/lib/python2.7/site-packages/coverage_enable_subprocess-0-py2.7.egg
Processing dependencies for coverage-enable-subprocess==0
Finished processing dependencies for coverage-enable-subprocess==0
ionel:newbox ~/sandbox/coverage_enable_subprocess master?> ll .ve/lib/python2.7/site-packages                                                                                                     0.17s => 0 16:48
total 60K
drwxrwxr-x  3 ionel ionel 4.0K Dec  2 16:48 coverage
drwxrwxr-x  2 ionel ionel 4.0K Dec  2 16:48 coverage-4.0.3.dist-info
drwxrwxr-x  3 ionel ionel 4.0K Dec  2 16:48 coverage_enable_subprocess-0-py2.7.egg
-rw-rw-r--  1 ionel ionel   48 Dec  2 16:48 coverage-enable-subprocess.egg-link
-rw-rw-r--  1 ionel ionel  226 Dec  2 16:48 easy-install.pth
-rw-rw-r--  1 ionel ionel  126 Dec  2 16:48 easy_install.py
-rw-rw-r--  1 ionel ionel  315 Dec  2 16:48 easy_install.pyc
drwxrwxr-x  2 ionel ionel 4.0K Dec  2 16:48 _markerlib
drwxrwxr-x 10 ionel ionel 4.0K Dec  2 16:48 pip
drwxrwxr-x  2 ionel ionel 4.0K Dec  2 16:48 pip-7.1.2.dist-info
drwxrwxr-x  3 ionel ionel 4.0K Dec  2 16:48 pkg_resources
drwxrwxr-x  3 ionel ionel 4.0K Dec  2 16:48 setuptools
drwxrwxr-x  2 ionel ionel 4.0K Dec  2 16:48 setuptools-18.2.dist-info
drwxrwxr-x  5 ionel ionel 4.0K Dec  2 16:48 wheel
drwxrwxr-x  2 ionel ionel 4.0K Dec  2 16:48 wheel-0.24.0.dist-info