crfsuite include path

Đang mở
#103 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
30/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
build-system

Hướng nghiên cứu

The report identifies the generated file pycrfsuite/_pycrfsuite.cpp and the failing include paths, but it does not name the Cython source or build configuration that controls them. Start by locating the source declarations and build include settings that generate this file; determine how to resolve the CRFsuite headers without hardcoding /usr/include/. Done means a clean build finds both headers, with the generated C++ file still reproducible.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

The Cython-generated pycrfsuite/_pycrfsuite.cpp file includes

#include "../crfsuite/include/crfsuite.h"
#include "../crfsuite/include/crfsuite_api.hpp"

which leads to compilation failure:
pycrfsuite/_pycrfsuite.cpp:586:10: fatal error: ../crfsuite/include/crfsuite.h: No such file or directory

How can I change this to (or without /usr/include/)

#include "/usr/include/crfsuite.h"
#include "/usr/include/crfsuite_api.hpp"
``` ?

The file is not patchable because Cython always regenerates it.
Thanks in advance.
Ngôn ngữ chính
Python
Star
774
Fork
223
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của scrapinghub/python-crfsuite

Tất cả issue của scrapinghub/python-crfsuite

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.