Skip to content

adding setup.py#1

Open
sboysel wants to merge 1 commit intobryangraham:masterfrom
sboysel:fix/package
Open

adding setup.py#1
sboysel wants to merge 1 commit intobryangraham:masterfrom
sboysel:fix/package

Conversation

@sboysel
Copy link
Copy Markdown

@sboysel sboysel commented Oct 31, 2019

To allow remote install via pip. Installing the original package gives an errors

(ds) [sam@batu repos]$  pip install -e git+https://github.com/bryangraham/ipt.git@master#egg=ipt
Obtaining ipt from git+https://github.com/bryangraham/ipt.git@master#egg=ipt
  Updating /home/sam/.venvs/ds/src/ipt clone (to revision master)
  Running command git fetch -q --tags
  Running command git reset --hard -q 9f15dae209f346db6e4fbfd0c52c38b3303c06d6
    ERROR: Command errored out with exit status 1:
     command: /home/sam/.venvs/ds/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/sam/.venvs/ds/src/ipt/setup.py'"'"'; __file__='"'"'/home/sam/.venvs/ds/src/ipt/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info
         cwd: /home/sam/.venvs/ds/src/ipt/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib/python3.7/tokenize.py", line 447, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: '/home/sam/.venvs/ds/src/ipt/setup.py'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Installing from sboysel/ipt with setup.py included is successful

(ds) [sam@batu repos]$  pip install -e git+https://github.com/sboysel/ipt.git@fix/package#egg=ipt
Obtaining ipt from git+https://github.com/sboysel/ipt.git@fix/package#egg=ipt
  WARNING: git clone in /home/sam/.venvs/ds/src/ipt exists with URL https://github.com/bryangraham/ipt.git
  WARNING: The plan is to install the git repository https://github.com/sboysel/ipt.git
What to do?  (s)witch, (i)gnore, (w)ipe, (b)ackup s
  Switching clone /home/sam/.venvs/ds/src/ipt to https://github.com/sboysel/ipt.git (to revision fix/package)
  Running command git config remote.origin.url https://github.com/sboysel/ipt.git
  Running command git checkout -q fix/package
Installing collected packages: ipt
  Running setup.py develop for ipt
Successfully installed ipt

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

Successfully merging this pull request may close these issues.

1 participant