Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support develop and other things #2

Open
ionelmc opened this issue Dec 2, 2015 · 0 comments
Open

Support develop and other things #2

ionelmc opened this issue Dec 2, 2015 · 0 comments

Comments

@ionelmc
Copy link

ionelmc commented Dec 2, 2015

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant