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

Feature request: include setup.py #18

Closed
arnold-jr opened this issue Jun 27, 2018 · 10 comments
Closed

Feature request: include setup.py #18

arnold-jr opened this issue Jun 27, 2018 · 10 comments
Assignees

Comments

@arnold-jr
Copy link

Would be nice to make this pip installable.

Thanks.

@soldni soldni self-assigned this Jul 16, 2018
@soldni
Copy link
Member

soldni commented Jul 16, 2018

Joshua,

Thanks for the suggestion! I am a bit time constrained at the moment, but I plan to look into this in the future.

-Luca

@burgersmoke
Copy link
Contributor

I was thinking about this too and I might try to get some time to add a setup.py and test this. I've been building something up using QuickUMLS and I'd love for it to be an easier dependency install for the pipeline I'm building. With any luck, I might have a pull request in a week or two.

@soldni
Copy link
Member

soldni commented Jan 14, 2019

Kelly,

I would be delighted if you can take up the mantle for that -- I'm currently a bit of capacity.

Best,
Luca

@burgersmoke
Copy link
Contributor

Excellent. I made some progress yesterday with both this and simstring. I'll keep you apprised of my progress. If this works out, we'll need to briefly discuss registering the package(s) and version numbering.

@soldni
Copy link
Member

soldni commented Jun 18, 2019

I finally have an update on this: I have a branch that is pip installable. I am not 100% ready to make a full announcement yet, but you can already install QuickUMLS via pip install quickumls. Please share any feedback/issue you encounter!

@sandertan
Copy link
Contributor

@soldni Thanks for this awesome update! I successfully installed it with Python3, but get an error when using Python2.

To reproduce:

# Start Docker container with Python 2.7.16
docker run -it --rm python:2.7.16 bash

# In container install QuickUMLS
pip install QuickUMLS

There's quite a long stacktrace, but it ends with

Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-05LydY/quickumls-simstring/setup.py", line 122, in <module>
      'install_lib': _CommandInstallCythonized,
    File "/usr/local/lib/python2.7/distutils/core.py", line 151, in setup
      dist.run_commands()
    File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/usr/local/lib/python2.7/site-packages/wheel/bdist_wheel.py", line 228, in run
      self.run_command('install')
    File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_command
      self.distribution.run_command(command)
    File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/usr/local/lib/python2.7/site-packages/setuptools/command/install.py", line 61, in run
      return orig.install.run(self)
    File "/usr/local/lib/python2.7/distutils/command/install.py", line 575, in run
      self.run_command(cmd_name)
    File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_command
      self.distribution.run_command(command)
    File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/usr/local/lib/python2.7/distutils/command/install_lib.py", line 97, in run
      outfiles = self.install()
    File "/tmp/pip-install-05LydY/quickumls-simstring/setup.py", line 45, in install
      for file in outfiles]
    File "/tmp/pip-install-05LydY/quickumls-simstring/setup.py", line 30, in batch_rename
      dst_dir_fd=dst_dir_fd)
  TypeError: rename() takes no keyword arguments
  ----------------------------------------
  ERROR: Failed building wheel for quickumls-simstring

@burgersmoke
Copy link
Contributor

Since Python 2.x is retiring in 6 months, I would propose that this may not warrant attention but instead users work within Python 3.x:

https://pythonclock.org/

@burgersmoke
Copy link
Contributor

I finally have an update on this: I have a branch that is pip installable. I am not 100% ready to make a full announcement yet, but you can already install QuickUMLS via pip install quickumls. Please share any feedback/issue you encounter!

This is excellent news @soldni . If you could benefit from any testing, let me know. I still need to share the changes I've made to wrap QuickUMLS as a true spacy component in modular pipelines, but I wonder if I should do this after hearing what kind of announcement you have planned.

@soldni
Copy link
Member

soldni commented Jun 18, 2019

@sandertan as mentioned by Kelly, python 2 deprecation is imminent, so I was planning to drop support starting with version 1.3.

@burgersmoke That would be awesome -- I hope the changes I'm making (mostly related to packaging and squashing relative imports) will not cause any major headache when rebasing. I am currently testing for MacOS (and maybe Windows? compatibility); other than that, we should be good to go.

@soldni soldni closed this as completed in e701161 Jun 19, 2019
@soldni
Copy link
Member

soldni commented Jun 19, 2019

Testing was successful on macOS and UNIX. Merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants